Class: StrawberryAPI::Metadatum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute asset_id



6
7
8
# File 'lib/strawberry_api/metadatum.rb', line 6

def asset_id
  @asset_id
end

#idObject

Returns the value of attribute id



5
6
7
# File 'lib/strawberry_api/metadatum.rb', line 5

def id
  @id
end

#propertyObject

Returns the value of attribute property



8
9
10
# File 'lib/strawberry_api/metadatum.rb', line 8

def property
  @property
end

#sourceObject

Returns the value of attribute source



7
8
9
# File 'lib/strawberry_api/metadatum.rb', line 7

def source
  @source
end

#valueObject

Returns the value of attribute value



9
10
11
# File 'lib/strawberry_api/metadatum.rb', line 9

def value
  @value
end