Class: Ingenico::Direct::SDK::Domain::PaymentAccountOnFile
- Inherits:
-
Ingenico::Direct::SDK::DataObject
- Object
- Ingenico::Direct::SDK::DataObject
- Ingenico::Direct::SDK::Domain::PaymentAccountOnFile
- Defined in:
- lib/ingenico/direct/sdk/domain/payment_account_on_file.rb
Instance Attribute Summary collapse
-
#create_date ⇒ String
The current value of create_date.
-
#number_of_card_on_file_creation_attempts_last24_hours ⇒ Integer
The current value of number_of_card_on_file_creation_attempts_last24_hours.
Instance Method Summary collapse
Methods inherited from Ingenico::Direct::SDK::DataObject
Instance Attribute Details
#create_date ⇒ String
Returns the current value of create_date.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/payment_account_on_file.rb', line 12 def create_date @create_date end |
#number_of_card_on_file_creation_attempts_last24_hours ⇒ Integer
Returns the current value of number_of_card_on_file_creation_attempts_last24_hours.
12 13 14 |
# File 'lib/ingenico/direct/sdk/domain/payment_account_on_file.rb', line 12 def number_of_card_on_file_creation_attempts_last24_hours @number_of_card_on_file_creation_attempts_last24_hours end |
Instance Method Details
#from_hash(hash) ⇒ Object
24 25 26 27 28 |
# File 'lib/ingenico/direct/sdk/domain/payment_account_on_file.rb', line 24 def from_hash(hash) super @create_date = hash['createDate'] if hash.key? 'createDate' @number_of_card_on_file_creation_attempts_last24_hours = hash['numberOfCardOnFileCreationAttemptsLast24Hours'] if hash.key? 'numberOfCardOnFileCreationAttemptsLast24Hours' end |
#to_h ⇒ Hash
17 18 19 20 21 22 |
# File 'lib/ingenico/direct/sdk/domain/payment_account_on_file.rb', line 17 def to_h hash = super hash['createDate'] = @create_date unless @create_date.nil? hash['numberOfCardOnFileCreationAttemptsLast24Hours'] = @number_of_card_on_file_creation_attempts_last24_hours unless @number_of_card_on_file_creation_attempts_last24_hours.nil? hash end |