Class: TicketflyPlus::Requestors::Events

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

Constant Summary collapse

EVENTS_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 = {}) ⇒ Events

Returns a new instance of Events.



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/ticketfly_plus/requestors.rb', line 79

def initialize(options={})
    super
    @artistName = stringify('artistName=', options[:artistName])
    @fields = stringify('fields=', options[:fields])
    @fieldsGroup = stringify('fieldsGroup=', options[:fieldsGroup])
    @fromDate = stringify('fromDate=', options[:fromDate])
    @maxResults = stringify('maxResults=', options[:maxResults])
    @orgId = stringify('orgId=', options[:orgId])
    @pageNum = stringify('pageNum=', options[:pageNum])
    @q = stringify('q=', options[:q])
    @skin = stringify('skin=', options[:skin])
    @tflyTicketed = stringify('tflyTicketed=', options[:tflyTicketed])
    @thruDate = stringify('thruDate=', options[:thruDate])
    @venueId = stringify('venueId=', options[:venueId])
    @geo = stringify('location=geo:', options[:geo])
    @ip = stringify('location=ip:', options[:ip])
    @clientip = stringify('location=clientip', options[:clientip])
    @distance = stringify('distance=', options[:distance])
end

Instance Attribute Details

#artistNameObject

Returns the value of attribute artistName.



61
62
63
# File 'lib/ticketfly_plus/requestors.rb', line 61

def artistName
  @artistName
end

#clientipObject

Returns the value of attribute clientip.



76
77
78
# File 'lib/ticketfly_plus/requestors.rb', line 76

def clientip
  @clientip
end

#distanceObject

Returns the value of attribute distance.



77
78
79
# File 'lib/ticketfly_plus/requestors.rb', line 77

def distance
  @distance
end

#fieldGroupObject

Returns the value of attribute fieldGroup.



62
63
64
# File 'lib/ticketfly_plus/requestors.rb', line 62

def fieldGroup
  @fieldGroup
end

#fieldsObject

Returns the value of attribute fields.



63
64
65
# File 'lib/ticketfly_plus/requestors.rb', line 63

def fields
  @fields
end

#fromDateObject

Returns the value of attribute fromDate.



64
65
66
# File 'lib/ticketfly_plus/requestors.rb', line 64

def fromDate
  @fromDate
end

#geoObject

Returns the value of attribute geo.



74
75
76
# File 'lib/ticketfly_plus/requestors.rb', line 74

def geo
  @geo
end

#ipObject

Returns the value of attribute ip.



75
76
77
# File 'lib/ticketfly_plus/requestors.rb', line 75

def ip
  @ip
end

#maxResultsObject

Returns the value of attribute maxResults.



65
66
67
# File 'lib/ticketfly_plus/requestors.rb', line 65

def maxResults
  @maxResults
end

#orgIdObject

Returns the value of attribute orgId.



66
67
68
# File 'lib/ticketfly_plus/requestors.rb', line 66

def orgId
  @orgId
end

#pageNumObject

Returns the value of attribute pageNum.



67
68
69
# File 'lib/ticketfly_plus/requestors.rb', line 67

def pageNum
  @pageNum
end

#qObject

Returns the value of attribute q.



68
69
70
# File 'lib/ticketfly_plus/requestors.rb', line 68

def q
  @q
end

#skinObject

Returns the value of attribute skin.



69
70
71
# File 'lib/ticketfly_plus/requestors.rb', line 69

def skin
  @skin
end

#tflyTicketedObject

Returns the value of attribute tflyTicketed.



70
71
72
# File 'lib/ticketfly_plus/requestors.rb', line 70

def tflyTicketed
  @tflyTicketed
end

#thruDateObject

Returns the value of attribute thruDate.



71
72
73
# File 'lib/ticketfly_plus/requestors.rb', line 71

def thruDate
  @thruDate
end

#venueIdObject

Returns the value of attribute venueId.



72
73
74
# File 'lib/ticketfly_plus/requestors.rb', line 72

def venueId
  @venueId
end

Instance Method Details



107
108
109
# File 'lib/ticketfly_plus/requestors.rb', line 107

def featured
    TicketflyPlus::Calls::Featured.new(requestor_string: EVENTS_STRING, params_list: get_params_list.join.to_s)
end

#just_announcedObject



111
112
113
# File 'lib/ticketfly_plus/requestors.rb', line 111

def just_announced
    TicketflyPlus::Calls::JustAnnounced.new(requestor_string: EVENTS_STRING, params_list: get_params_list.join.to_s)
end

#listObject



99
100
101
# File 'lib/ticketfly_plus/requestors.rb', line 99

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

#on_saleObject



119
120
121
# File 'lib/ticketfly_plus/requestors.rb', line 119

def on_sale
    TicketflyPlus::Calls::OnSale.new(requestor_string: EVENTS_STRING, params_list: get_params_list.join.to_s)
end

#pastObject



115
116
117
# File 'lib/ticketfly_plus/requestors.rb', line 115

def past
    TicketflyPlus::Calls::Past.new(requestor_string: EVENTS_STRING, params_list: get_params_list.join.to_s)
end

#upcomingObject



103
104
105
# File 'lib/ticketfly_plus/requestors.rb', line 103

def upcoming
    TicketflyPlus::Calls::Upcoming.new(requestor_string: EVENTS_STRING, params_list: get_params_list.join.to_s)
end