Class: CommonChemistry::PropertyCitation
- Inherits:
-
Object
- Object
- CommonChemistry::PropertyCitation
- Defined in:
- lib/commonchemistry.rb
Overview
Represents a property citation
Instance Attribute Summary collapse
-
#doc_uri ⇒ Object
readonly
Returns the value of attribute doc_uri.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#source_number ⇒ Object
readonly
Returns the value of attribute source_number.
Instance Method Summary collapse
-
#initialize(data) ⇒ PropertyCitation
constructor
A new instance of PropertyCitation.
Constructor Details
#initialize(data) ⇒ PropertyCitation
Returns a new instance of PropertyCitation.
172 173 174 175 176 |
# File 'lib/commonchemistry.rb', line 172 def initialize(data) @doc_uri = data['docUri'] @source_number = data['sourceNumber'] @source = data['source'] end |
Instance Attribute Details
#doc_uri ⇒ Object (readonly)
Returns the value of attribute doc_uri.
170 171 172 |
# File 'lib/commonchemistry.rb', line 170 def doc_uri @doc_uri end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
170 171 172 |
# File 'lib/commonchemistry.rb', line 170 def source @source end |
#source_number ⇒ Object (readonly)
Returns the value of attribute source_number.
170 171 172 |
# File 'lib/commonchemistry.rb', line 170 def source_number @source_number end |