Method: Unit::Event::ListEventParams#initialize

Defined in:
lib/unit/models/event/list_event_params.rb

#initialize(limit = EVENT_LIST_LIMIT, offset = EVENT_LIST_OFFSET, type = nil, since = nil, _until = nil) ⇒ ListEventParams

Returns a new instance of ListEventParams.

Parameters:

  • limit (Integer) (defaults to: EVENT_LIST_LIMIT)
  • offset (Integer) (defaults to: EVENT_LIST_OFFSET)
  • type (Array<String>) (defaults to: nil)
    • optional

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

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



15
16
17
18
19
20
21
# File 'lib/unit/models/event/list_event_params.rb', line 15

def initialize(limit = EVENT_LIST_LIMIT, offset = EVENT_LIST_OFFSET, type = nil, since = nil, _until = nil)
  @limit = limit
  @offset = offset
  @type = type
  @since = since
  @_until = _until
end