class Ticketfly::Venue
Attributes
id[RW]
json[RW]
name[RW]
Public Class Methods
build(json)
click to toggle source
# File lib/ticketfly.rb, line 18 def self.build(json) venue = Venue.new venue.id = json['id'] venue.name = json['name'] venue.json = json venue end
Public Instance Methods
events()
click to toggle source
# File lib/ticketfly.rb, line 26 def events Events.get_by_venue_id(self.id) end
next_event()
click to toggle source
# File lib/ticketfly.rb, line 30 def next_event Events.get_next_by_venue_id(self.id) end