Class: CommonChemistry::PropertyCitation

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

Overview

Represents a property citation

Instance Attribute Summary collapse

Instance Method Summary collapse

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_uriObject (readonly)

Returns the value of attribute doc_uri.



170
171
172
# File 'lib/commonchemistry.rb', line 170

def doc_uri
  @doc_uri
end

#sourceObject (readonly)

Returns the value of attribute source.



170
171
172
# File 'lib/commonchemistry.rb', line 170

def source
  @source
end

#source_numberObject (readonly)

Returns the value of attribute source_number.



170
171
172
# File 'lib/commonchemistry.rb', line 170

def source_number
  @source_number
end