Class: Unit::CheckDeposit::GetRequest
- Inherits:
-
Object
- Object
- Unit::CheckDeposit::GetRequest
- Defined in:
- lib/unit/models/check_deposit/get_request.rb
Instance Attribute Summary collapse
-
#deposit_id ⇒ Object
readonly
Returns the value of attribute deposit_id.
-
#include ⇒ Object
readonly
Returns the value of attribute include.
Instance Method Summary collapse
-
#initialize(deposit_id, include = nil) ⇒ GetRequest
constructor
A new instance of GetRequest.
- #to_hash ⇒ Object
Constructor Details
#initialize(deposit_id, include = nil) ⇒ GetRequest
Returns a new instance of GetRequest.
12 13 14 15 |
# File 'lib/unit/models/check_deposit/get_request.rb', line 12 def initialize(deposit_id, include = nil) @deposit_id = deposit_id @include = include end |
Instance Attribute Details
#deposit_id ⇒ Object (readonly)
Returns the value of attribute deposit_id.
8 9 10 |
# File 'lib/unit/models/check_deposit/get_request.rb', line 8 def deposit_id @deposit_id end |
#include ⇒ Object (readonly)
Returns the value of attribute include.
8 9 10 |
# File 'lib/unit/models/check_deposit/get_request.rb', line 8 def include @include end |
Instance Method Details
#to_hash ⇒ Object
17 18 19 |
# File 'lib/unit/models/check_deposit/get_request.rb', line 17 def to_hash { include: include&.join(",") }.compact end |