class DataKitten::Rights

A rights statement for a {Dataset} or {Distribution}

Attributes

attributionText[RW]

@!attribute attributionText

@return [String] the attribution text for the dataset.
attributionURL[RW]

@!attribute attributionURL

@return [String] the attribution URL for the dataset.
contentLicense[RW]

@!attribute contentLicense

@return [String] the license for the content in the dataset.
copyrightHolder[RW]

@!attribute copyrightHolder

@return [String] the URI of the organization that holds copyright for this dataset
copyrightNotice[RW]

@!attribute copyrightNotice

@return [String] the copyright notice for the dataset.
copyrightStatement[RW]

@!attribute copyrightStatement

@return [String] the URL of a copyright statement for the dataset
copyrightYear[RW]

@!attribute copyrightYear

@return [String] the year in which copyright is claimed
dataLicense[RW]

@!attribute dataLicense

@return [String] the license for the data in the dataset.
databaseRightHolder[RW]

@!attribute databaseRightHolder

@return [String] the URI of the organization that owns the database rights for this dataset
databaseRightStatement[RW]

@!attribute databaseRightStatement

@return [String] the URL of a database right statement for the dataset
databaseRightYear[RW]

@!attribute databaseRightYear

@return [String] the year in which copyright is claimed
uri[RW]

@!attribute uri

@return [String] the URI for the rights statement

Public Class Methods

new(options) click to toggle source

Create a new Rights object.

@param options [Hash] A set of options with which to initialise the license. @option options [String] :dataLicense the license for the data in the dataset @option options [String] :contentLicense the license for the content in the dataset @option options [String] :copyrightNotice the copyright notice for the dataset @option options [String] :attributionURL the attribution URL for the dataset @option options [String] :attributionText attribution name for the dataset

# File lib/data_kitten/rights.rb, line 63
def initialize(options)
  @uri = options[:uri]
  @dataLicense = options[:dataLicense]
  @contentLicense = options[:contentLicense]
  @copyrightNotice = options[:copyrightNotice]
  @attributionURL = options[:attributionURL]
  @attributionText = options[:attributionText]
  @copyrightHolder = options[:copyrightHolder]
  @databaseRightHolder = options[:databaseRightHolder]
  @copyrightYear = options[:copyrightYear]
  @databaseRightYear = options[:databaseRightYear]
  @copyrightStatement = options[:copyrightStatement]
  @databaseRightStatement = options[:databaseRightStatement]
end