Class: StrawberryAPI::CustomMetadataOption

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_idObject

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

#idObject

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

#nameObject

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_searchObject

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