Class: Worldline::Connect::SDK::V1::Domain::PaymentProductFieldDisplayElement
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::PaymentProductFieldDisplayElement
- Defined in:
- lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb
Instance Attribute Summary collapse
-
#id ⇒ String
The current value of id.
-
#label ⇒ String
The current value of label.
-
#type ⇒ String
The current value of type.
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#id ⇒ String
Returns the current value of id.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 16 def id @id end |
#label ⇒ String
Returns the current value of label.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 16 def label @label end |
#type ⇒ String
Returns the current value of type.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 16 def type @type end |
#value ⇒ String
Returns the current value of value.
16 17 18 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 16 def value @value end |
Instance Method Details
#from_hash(hash) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 36 def from_hash(hash) super if hash.has_key? 'id' @id = hash['id'] end if hash.has_key? 'label' @label = hash['label'] end if hash.has_key? 'type' @type = hash['type'] end if hash.has_key? 'value' @value = hash['value'] end end |
#to_h ⇒ Hash
27 28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/domain/payment_product_field_display_element.rb', line 27 def to_h hash = super hash['id'] = @id unless @id.nil? hash['label'] = @label unless @label.nil? hash['type'] = @type unless @type.nil? hash['value'] = @value unless @value.nil? hash end |