Class: Lighthouse::DirectDeposit::Response
- Inherits:
-
Object
- Object
- Lighthouse::DirectDeposit::Response
- Defined in:
- lib/lighthouse/direct_deposit/response.rb
Instance Attribute Summary collapse
-
#control_information ⇒ Object
Returns the value of attribute control_information.
-
#payment_account ⇒ Object
Returns the value of attribute payment_account.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #body ⇒ Object
- #error? ⇒ Boolean
-
#initialize(status, control_information, payment_account) ⇒ Response
constructor
A new instance of Response.
- #response ⇒ Object
Constructor Details
#initialize(status, control_information, payment_account) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 8 def initialize(status, control_information, payment_account) @status = status @control_information = control_information @payment_account = payment_account end |
Instance Attribute Details
#control_information ⇒ Object
Returns the value of attribute control_information.
6 7 8 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 6 def control_information @control_information end |
#payment_account ⇒ Object
Returns the value of attribute payment_account.
6 7 8 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 6 def payment_account @payment_account end |
#status ⇒ Object
Returns the value of attribute status.
6 7 8 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 6 def status @status end |
Instance Method Details
#body ⇒ Object
21 22 23 24 25 26 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 21 def body { control_information: @control_information, payment_account: @payment_account } end |
#error? ⇒ Boolean
28 29 30 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 28 def error? false end |
#response ⇒ Object
14 15 16 17 18 19 |
# File 'lib/lighthouse/direct_deposit/response.rb', line 14 def response { status: @status, body: } end |