Class: Worldline::Connect::SDK::V1::Domain::AccountOnFileAttribute
- Inherits:
-
KeyValuePair
- Object
- Domain::DataObject
- KeyValuePair
- Worldline::Connect::SDK::V1::Domain::AccountOnFileAttribute
- Defined in:
- lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb
Instance Attribute Summary collapse
-
#must_write_reason ⇒ String
The current value of must_write_reason.
-
#status ⇒ String
The current value of status.
Attributes inherited from KeyValuePair
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#must_write_reason ⇒ String
Returns the current value of must_write_reason.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 14 def must_write_reason @must_write_reason end |
#status ⇒ String
Returns the current value of status.
14 15 16 |
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 14 def status @status end |
Instance Method Details
#from_hash(hash) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 28 def from_hash(hash) super if hash.has_key? 'mustWriteReason' @must_write_reason = hash['mustWriteReason'] end if hash.has_key? 'status' @status = hash['status'] end end |
#to_h ⇒ Hash
21 22 23 24 25 26 |
# File 'lib/worldline/connect/sdk/v1/domain/account_on_file_attribute.rb', line 21 def to_h hash = super hash['mustWriteReason'] = @must_write_reason unless @must_write_reason.nil? hash['status'] = @status unless @status.nil? hash end |