Class: Unit::CheckDeposit::ListDepositParams
- Inherits:
-
Object
- Object
- Unit::CheckDeposit::ListDepositParams
- Defined in:
- lib/unit/models/check_deposit/list_deposit_params.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#include ⇒ Object
readonly
Returns the value of attribute include.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#sort ⇒ Object
readonly
Returns the value of attribute sort.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(limit = CHECK_DEPOSIT_LIMIT, offset = CHECK_DEPOSIT_OFFSET, account_id = nil, customer_id = nil, tags = nil, sort = nil, include = nil) ⇒ ListDepositParams
constructor
A new instance of ListDepositParams.
- #to_hash ⇒ Object
Constructor Details
#initialize(limit = CHECK_DEPOSIT_LIMIT, offset = CHECK_DEPOSIT_OFFSET, account_id = nil, customer_id = nil, tags = nil, sort = nil, include = nil) ⇒ ListDepositParams
Returns a new instance of ListDepositParams.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 17 def initialize(limit = CHECK_DEPOSIT_LIMIT, offset = CHECK_DEPOSIT_OFFSET, account_id = nil, customer_id = nil, = nil, sort = nil, include = nil) @limit = limit @offset = offset @account_id = account_id @customer_id = customer_id @tags = @sort = sort @include = include end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def account_id @account_id end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def customer_id @customer_id end |
#include ⇒ Object (readonly)
Returns the value of attribute include.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def include @include end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def limit @limit end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def offset @offset end |
#sort ⇒ Object (readonly)
Returns the value of attribute sort.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def sort @sort end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
8 9 10 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 8 def @tags end |
Instance Method Details
#to_hash ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/unit/models/check_deposit/list_deposit_params.rb', line 28 def to_hash params = { "page[limit]": limit, "page[offset]": offset, "filter[accountId]": account_id, "filter[customerId]": customer_id, "filter[tags]": , "sort": sort, "include": include&.join(",") } params.compact end |