Class: AxHub::Data::ListAllItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/axhub_sdk/data/pagination.rb

Overview

Either an item (type == :item) or a drift marker (type == :drift) when the backend total grows mid-scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value: nil, added_since: 0) ⇒ ListAllItem

Returns a new instance of ListAllItem.



23
24
25
# File 'lib/axhub_sdk/data/pagination.rb', line 23

def initialize(type:, value: nil, added_since: 0)
  super(type: type, value: value, added_since: added_since)
end

Instance Attribute Details

#added_sinceObject

Returns the value of attribute added_since

Returns:

  • (Object)

    the current value of added_since



22
23
24
# File 'lib/axhub_sdk/data/pagination.rb', line 22

def added_since
  @added_since
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



22
23
24
# File 'lib/axhub_sdk/data/pagination.rb', line 22

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



22
23
24
# File 'lib/axhub_sdk/data/pagination.rb', line 22

def value
  @value
end