Class: TicketflyPlus::Requestors::Event

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

Constant Summary collapse

EVENT_STRING =
'/events'

Constants inherited from Base

Base::BASE_STRING

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

next_page_request, request

Constructor Details

#initialize(options = {}) ⇒ Event

Returns a new instance of Event.



133
134
135
136
137
138
139
140
# File 'lib/ticketfly_plus/requestors.rb', line 133

def initialize(options = {})
    super
    @eventId = stringify('eventId=', options[:eventId])
    @fields = stringify('fields=', options[:fields])
    @fieldsGroup = stringify('fieldsGroup=', options[:fieldsGroup])
    @showRelatedEvents = stringify('showRelatedEvents=', options[:showRelatedEvents])
    @skin = stringify('skin=', options[:skin])
end

Instance Attribute Details

#eventIdObject

Returns the value of attribute eventId.



127
128
129
# File 'lib/ticketfly_plus/requestors.rb', line 127

def eventId
  @eventId
end

#fieldGroupObject

Returns the value of attribute fieldGroup.



128
129
130
# File 'lib/ticketfly_plus/requestors.rb', line 128

def fieldGroup
  @fieldGroup
end

#fieldsObject

Returns the value of attribute fields.



129
130
131
# File 'lib/ticketfly_plus/requestors.rb', line 129

def fields
  @fields
end

#showRelatedEventsObject

Returns the value of attribute showRelatedEvents.



130
131
132
# File 'lib/ticketfly_plus/requestors.rb', line 130

def showRelatedEvents
  @showRelatedEvents
end

#skinObject

Returns the value of attribute skin.



131
132
133
# File 'lib/ticketfly_plus/requestors.rb', line 131

def skin
  @skin
end

Instance Method Details

#eventObject



142
143
144
# File 'lib/ticketfly_plus/requestors.rb', line 142

def event
    TicketflyPlus::Calls::List.new(requestor_string: EVENT_STRING, params_list: get_params_list.join.to_s)
end