class EventbriteSDK::BlankResourceList

An Empty resource listing, returned on ORM calls from new resources

Public Class Methods

new(key: nil) click to toggle source
# File lib/eventbrite_sdk/blank_resource_list.rb, line 9
def initialize(key: nil)
  @key = key
  @objects = []
end

Public Instance Methods

concat(other) click to toggle source
# File lib/eventbrite_sdk/blank_resource_list.rb, line 22
def concat(other)
  other.concat(to_ary)
end
object_count() click to toggle source

Blank lists need to respond to the pagination helpers.

# File lib/eventbrite_sdk/blank_resource_list.rb, line 39
def object_count
  0
end
page(_num) click to toggle source
# File lib/eventbrite_sdk/blank_resource_list.rb, line 26
def page(_num)
  self
end
to_json(opts = {}) click to toggle source
# File lib/eventbrite_sdk/blank_resource_list.rb, line 34
def to_json(opts = {})
  { @key => [] }.to_json(opts)
end
with_expansion(*_args) click to toggle source
# File lib/eventbrite_sdk/blank_resource_list.rb, line 30
def with_expansion(*_args)
  self
end