Class: Cadooz::Immutable::GenerationProfileProduct

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/cadooz/models/immutable/generation_profile_product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins

#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize

Constructor Details

#initialize(open_struct) ⇒ GenerationProfileProduct

Returns a new instance of GenerationProfileProduct.



6
7
8
9
10
11
12
13
# File 'lib/cadooz/models/immutable/generation_profile_product.rb', line 6

def initialize(open_struct)
  @cadooz_product_number = open_struct&.cadooz_product_number
  @custom_value = open_struct&.custom_value
  @external_product_number = open_struct&.external_product_number
  @value = open_struct&.value

  self.freeze
end

Instance Attribute Details

#cadooz_product_numberObject (readonly)

Returns the value of attribute cadooz_product_number.



4
5
6
# File 'lib/cadooz/models/immutable/generation_profile_product.rb', line 4

def cadooz_product_number
  @cadooz_product_number
end

#custom_valueObject (readonly)

Returns the value of attribute custom_value.



4
5
6
# File 'lib/cadooz/models/immutable/generation_profile_product.rb', line 4

def custom_value
  @custom_value
end

#external_product_numberObject (readonly)

Returns the value of attribute external_product_number.



4
5
6
# File 'lib/cadooz/models/immutable/generation_profile_product.rb', line 4

def external_product_number
  @external_product_number
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/cadooz/models/immutable/generation_profile_product.rb', line 4

def value
  @value
end