class DataKitten::Rights
A rights statement for a {Dataset} or {Distribution}
Attributes
@!attribute attributionText
@return [String] the attribution text for the dataset.
@!attribute attributionURL
@return [String] the attribution URL for the dataset.
@!attribute contentLicense
@return [String] the license for the content in the dataset.
@!attribute copyrightHolder
@return [String] the URI of the organization that holds copyright for this dataset
@!attribute copyrightNotice
@return [String] the copyright notice for the dataset.
@!attribute copyrightStatement
@return [String] the URL of a copyright statement for the dataset
@!attribute copyrightYear
@return [String] the year in which copyright is claimed
@!attribute dataLicense
@return [String] the license for the data in the dataset.
@!attribute databaseRightHolder
@return [String] the URI of the organization that owns the database rights for this dataset
@!attribute databaseRightStatement
@return [String] the URL of a database right statement for the dataset
@!attribute databaseRightYear
@return [String] the year in which copyright is claimed
@!attribute uri
@return [String] the URI for the rights statement
Public Class Methods
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