Class: StrawberryAPI::CustomMetadataOption
- Inherits:
-
Object
- Object
- StrawberryAPI::CustomMetadataOption
- Defined in:
- lib/strawberry_api/custom_metadata/custom_metadata_option.rb
Instance Attribute Summary collapse
-
#custom_metadata_field_id ⇒ Object
Returns the value of attribute custom_metadata_field_id.
-
#custom_metadata_sub_set_id ⇒ Object
Returns the value of attribute custom_metadata_sub_set_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#safe_search ⇒ Object
Returns the value of attribute safe_search.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CustomMetadataOption
constructor
A new instance of CustomMetadataOption.
Constructor Details
#initialize(params = {}) ⇒ CustomMetadataOption
Returns a new instance of CustomMetadataOption
11 12 13 14 15 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_option.rb', line 11 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#custom_metadata_field_id ⇒ Object
Returns the value of attribute custom_metadata_field_id
7 8 9 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_option.rb', line 7 def @custom_metadata_field_id end |
#custom_metadata_sub_set_id ⇒ Object
Returns the value of attribute custom_metadata_sub_set_id
8 9 10 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_option.rb', line 8 def @custom_metadata_sub_set_id end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_option.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_option.rb', line 6 def name @name end |
#safe_search ⇒ Object
Returns the value of attribute safe_search
9 10 11 |
# File 'lib/strawberry_api/custom_metadata/custom_metadata_option.rb', line 9 def safe_search @safe_search end |