Class: StrawberryAPI::Metadatum
- Inherits:
-
Object
- Object
- StrawberryAPI::Metadatum
- Defined in:
- lib/strawberry_api/metadatum.rb
Instance Attribute Summary collapse
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#property ⇒ Object
Returns the value of attribute property.
-
#source ⇒ Object
Returns the value of attribute source.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Metadatum
constructor
A new instance of Metadatum.
Constructor Details
#initialize(params = {}) ⇒ Metadatum
Returns a new instance of Metadatum
11 12 13 14 15 |
# File 'lib/strawberry_api/metadatum.rb', line 11 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#asset_id ⇒ Object
Returns the value of attribute asset_id
6 7 8 |
# File 'lib/strawberry_api/metadatum.rb', line 6 def asset_id @asset_id end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/metadatum.rb', line 5 def id @id end |
#property ⇒ Object
Returns the value of attribute property
8 9 10 |
# File 'lib/strawberry_api/metadatum.rb', line 8 def property @property end |
#source ⇒ Object
Returns the value of attribute source
7 8 9 |
# File 'lib/strawberry_api/metadatum.rb', line 7 def source @source end |
#value ⇒ Object
Returns the value of attribute value
9 10 11 |
# File 'lib/strawberry_api/metadatum.rb', line 9 def value @value end |