Class: Worldline::Connect::SDK::V1::Domain::ExemptionOutput
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::ExemptionOutput
- Defined in:
- lib/worldline/connect/sdk/v1/domain/exemption_output.rb
Instance Attribute Summary collapse
-
#exemption_raised ⇒ String
The current value of exemption_raised.
-
#exemption_rejection_reason ⇒ String
The current value of exemption_rejection_reason.
-
#exemption_request ⇒ String
The current value of exemption_request.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#exemption_raised ⇒ String
Returns the current value of exemption_raised.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15 def exemption_raised @exemption_raised end |
#exemption_rejection_reason ⇒ String
Returns the current value of exemption_rejection_reason.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15 def exemption_rejection_reason @exemption_rejection_reason end |
#exemption_request ⇒ String
Returns the current value of exemption_request.
15 16 17 |
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 15 def exemption_request @exemption_request end |
Instance Method Details
#from_hash(hash) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 32 def from_hash(hash) super if hash.has_key? 'exemptionRaised' @exemption_raised = hash['exemptionRaised'] end if hash.has_key? 'exemptionRejectionReason' @exemption_rejection_reason = hash['exemptionRejectionReason'] end if hash.has_key? 'exemptionRequest' @exemption_request = hash['exemptionRequest'] end end |
#to_h ⇒ Hash
24 25 26 27 28 29 30 |
# File 'lib/worldline/connect/sdk/v1/domain/exemption_output.rb', line 24 def to_h hash = super hash['exemptionRaised'] = @exemption_raised unless @exemption_raised.nil? hash['exemptionRejectionReason'] = @exemption_rejection_reason unless @exemption_rejection_reason.nil? hash['exemptionRequest'] = @exemption_request unless @exemption_request.nil? hash end |