Class: DataKitten::Rights

Inherits:
Object
  • Object
show all
Defined in:
lib/data_kitten/rights.rb

Overview

A rights statement for a Dataset or Distribution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Rights

Create a new Rights object.

Parameters:

  • options (Hash)

    A set of options with which to initialise the license.

Options Hash (options):

  • :dataLicense (String)

    the license for the data in the dataset

  • :contentLicense (String)

    the license for the content in the dataset

  • :copyrightNotice (String)

    the copyright notice for the dataset

  • :attributionURL (String)

    the attribution URL for the dataset

  • :attributionText (String)

    attribution name for the dataset



63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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

Instance Attribute Details

#attributionTextString

Returns the attribution text for the dataset.

Returns:

  • (String)

    the attribution text for the dataset.



29
30
31
# File 'lib/data_kitten/rights.rb', line 29

def attributionText
  @attributionText
end

#attributionURLString

Returns the attribution URL for the dataset.

Returns:

  • (String)

    the attribution URL for the dataset.



25
26
27
# File 'lib/data_kitten/rights.rb', line 25

def attributionURL
  @attributionURL
end

#contentLicenseString

Returns the license for the content in the dataset.

Returns:

  • (String)

    the license for the content in the dataset.



17
18
19
# File 'lib/data_kitten/rights.rb', line 17

def contentLicense
  @contentLicense
end

#copyrightHolderString

Returns the URI of the organization that holds copyright for this dataset.

Returns:

  • (String)

    the URI of the organization that holds copyright for this dataset



33
34
35
# File 'lib/data_kitten/rights.rb', line 33

def copyrightHolder
  @copyrightHolder
end

#copyrightNoticeString

Returns the copyright notice for the dataset.

Returns:

  • (String)

    the copyright notice for the dataset.



21
22
23
# File 'lib/data_kitten/rights.rb', line 21

def copyrightNotice
  @copyrightNotice
end

#copyrightStatementString

Returns the URL of a copyright statement for the dataset.

Returns:

  • (String)

    the URL of a copyright statement for the dataset



49
50
51
# File 'lib/data_kitten/rights.rb', line 49

def copyrightStatement
  @copyrightStatement
end

#copyrightYearString

Returns the year in which copyright is claimed.

Returns:

  • (String)

    the year in which copyright is claimed



41
42
43
# File 'lib/data_kitten/rights.rb', line 41

def copyrightYear
  @copyrightYear
end

#databaseRightHolderString

Returns the URI of the organization that owns the database rights for this dataset.

Returns:

  • (String)

    the URI of the organization that owns the database rights for this dataset



37
38
39
# File 'lib/data_kitten/rights.rb', line 37

def databaseRightHolder
  @databaseRightHolder
end

#databaseRightStatementString

Returns the URL of a database right statement for the dataset.

Returns:

  • (String)

    the URL of a database right statement for the dataset



53
54
55
# File 'lib/data_kitten/rights.rb', line 53

def databaseRightStatement
  @databaseRightStatement
end

#databaseRightYearString

Returns the year in which copyright is claimed.

Returns:

  • (String)

    the year in which copyright is claimed



45
46
47
# File 'lib/data_kitten/rights.rb', line 45

def databaseRightYear
  @databaseRightYear
end

#dataLicenseString

Returns the license for the data in the dataset.

Returns:

  • (String)

    the license for the data in the dataset.



13
14
15
# File 'lib/data_kitten/rights.rb', line 13

def dataLicense
  @dataLicense
end

#uriString

Returns the URI for the rights statement.

Returns:

  • (String)

    the URI for the rights statement



9
10
11
# File 'lib/data_kitten/rights.rb', line 9

def uri
  @uri
end