Class: StrawberryAPI::CustomMetadataSet
- Inherits:
-
Object
- Object
- StrawberryAPI::CustomMetadataSet
- Defined in:
- lib/strawberry_api/custom_metadata/custom_metadata_set.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#custom_metadata_fields ⇒ Object
Returns the value of attribute custom_metadata_fields.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#root ⇒ Object
Returns the value of attribute root.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CustomMetadataSet
constructor
A new instance of CustomMetadataSet.
Constructor Details
#initialize(params = {}) ⇒ CustomMetadataSet
Returns a new instance of CustomMetadataSet
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 12 def initialize(params = {}) params.each do |k, v| if k == 'custom_metadata_fields' v.map! do || CustomMetadataField.new() end end instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 8 def created_at @created_at end |
#custom_metadata_fields ⇒ Object
Returns the value of attribute custom_metadata_fields
10 11 12 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 10 def @custom_metadata_fields end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 6 def name @name end |
#root ⇒ Object
Returns the value of attribute root
7 8 9 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 7 def root @root end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
9 10 11 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_set.rb', line 9 def updated_at @updated_at end |