Class: Flyticket::Events

Inherits:
Endpoint show all
Defined in:
lib/flyticket/events.rb

Class Method Summary collapse

Methods inherited from Endpoint

get_many, get_one, key

Class Method Details

.event(options) ⇒ Object



27
28
29
# File 'lib/flyticket/events.rb', line 27

def self.event(options)
  get_one '/event.json', options
end


15
16
17
# File 'lib/flyticket/events.rb', line 15

def self.featured(options)
  get_many '/featured.json', options
end

.just_announced(options) ⇒ Object



23
24
25
# File 'lib/flyticket/events.rb', line 23

def self.just_announced(options)
  get_many '/justAnnounced.json', options
end

.list(options) ⇒ Object



7
8
9
# File 'lib/flyticket/events.rb', line 7

def self.list(options)
  get_many '/list.json', options
end

.past(options) ⇒ Object



19
20
21
# File 'lib/flyticket/events.rb', line 19

def self.past(options)
  get_many '/past.json', options
end

.upcoming(options) ⇒ Object



11
12
13
# File 'lib/flyticket/events.rb', line 11

def self.upcoming(options)
  get_many '/upcoming.json', options
end