Class: Worldline::Acquiring::SDK::V1::Domain::PaymentMethodDataBase
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Acquiring::SDK::V1::Domain::PaymentMethodDataBase
- Defined in:
- lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#masked_identifier ⇒ String
The current value of masked_identifier.
-
#scheme ⇒ String
The current value of scheme.
-
#scheme_brand ⇒ String
The current value of scheme_brand.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#masked_identifier ⇒ String
Returns the current value of masked_identifier.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb', line 14 def masked_identifier @masked_identifier end |
#scheme ⇒ String
Returns the current value of scheme.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb', line 14 def scheme @scheme end |
#scheme_brand ⇒ String
Returns the current value of scheme_brand.
14 15 16 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb', line 14 def scheme_brand @scheme_brand end |
Instance Method Details
#from_hash(hash) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb', line 31 def from_hash(hash) super if hash.has_key? 'maskedIdentifier' @masked_identifier = hash['maskedIdentifier'] end if hash.has_key? 'scheme' @scheme = hash['scheme'] end if hash.has_key? 'schemeBrand' @scheme_brand = hash['schemeBrand'] end end |
#to_h ⇒ Hash
23 24 25 26 27 28 29 |
# File 'lib/worldline/acquiring/sdk/v1/domain/payment_method_data_base.rb', line 23 def to_h hash = super hash['maskedIdentifier'] = @masked_identifier unless @masked_identifier.nil? hash['scheme'] = @scheme unless @scheme.nil? hash['schemeBrand'] = @scheme_brand unless @scheme_brand.nil? hash end |