Class: AteTracks::Structures::InfoSource
- Inherits:
-
Object
- Object
- AteTracks::Structures::InfoSource
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#bio_source ⇒ Object
Returns the value of attribute bio_source.
-
#id ⇒ Object
Returns the value of attribute id.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(data) ⇒ InfoSource
constructor
A new instance of InfoSource.
Constructor Details
#initialize(data) ⇒ InfoSource
Returns a new instance of InfoSource.
105 106 107 108 109 110 |
# File 'lib/atetracks/structures.rb', line 105 def initialize(data) return nil if data.nil? @source = data['source'] @id = data['id'] @bio_source = data['bio_source'] end |
Instance Attribute Details
#bio_source ⇒ Object
Returns the value of attribute bio_source.
103 104 105 |
# File 'lib/atetracks/structures.rb', line 103 def bio_source @bio_source end |
#id ⇒ Object
Returns the value of attribute id.
103 104 105 |
# File 'lib/atetracks/structures.rb', line 103 def id @id end |
#source ⇒ Object
Returns the value of attribute source.
103 104 105 |
# File 'lib/atetracks/structures.rb', line 103 def source @source end |