class Spektrix::Tickets::Band

Public Class Methods

find(id) click to toggle source

The API doesn't allow you to filter by band_id, so we get all and find() in ruby

# File lib/models/tickets/band.rb, line 12
def self.find(id)
  all.to_a.find {|b| b.id.to_i == id}
end

Public Instance Methods

to_s() click to toggle source
# File lib/models/tickets/band.rb, line 7
def to_s
  self.name
end