Method: Unit::Card::ListCardParams#initialize

Defined in:
lib/unit/models/card/list_card_params.rb

#initialize(limit = CARD_LIST_LIMIT, offset = CARD_LIST_OFFSET, account_id = nil, customer_id = nil, tags = nil, status = nil, include = nil, sort = nil) ⇒ ListCardParams

Returns a new instance of ListCardParams.

Parameters:

  • limit (Integer) (defaults to: CARD_LIST_LIMIT)
    • optional

  • offset (Integer) (defaults to: CARD_LIST_OFFSET)
    • optional

  • account_id (String) (defaults to: nil)
    • optional

  • customer_id (String) (defaults to: nil)
    • optional

  • tags (String) (defaults to: nil)
    • optional

  • status (Array<String>) (defaults to: nil)
    • optional

  • include (Array) (defaults to: nil)
    • optional

  • sort (String) (defaults to: nil)
    • optional



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/unit/models/card/list_card_params.rb', line 18

def initialize(limit = CARD_LIST_LIMIT, offset = CARD_LIST_OFFSET,  = nil,
               customer_id = nil, tags = nil, status = nil, include = nil, sort = nil)
  @limit = limit
  @offset = offset
  @account_id = 
  @customer_id = customer_id
  @tags = tags
  @status = status
  @include = include
  @sort = sort
end