Class: TicketflyPlus::Calls::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/ticketfly_plus/calls.rb

Constant Summary collapse

CALL_STRING =
'/event.json?'

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#next_page

Constructor Details

#initialize(options = {}) ⇒ Event

Returns a new instance of Event.



112
113
114
115
116
117
118
119
120
121
122
# File 'lib/ticketfly_plus/calls.rb', line 112

def initialize(options={})
    if options[:requestor_string]
        @data = TicketflyPlus::Requestors::Base.request(
            options[:requestor_string] + 
            CALL_STRING + 
            options[:params_list]
        )
    else
        @data = TicketflyPlus::Requestors::Base.next_page_request(options[:next_page_string])
    end
end