class Spektrix::Seating::Plan

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/seating/plan.rb, line 16
def self.find(id)
  all.to_a.find {|b| b.id.to_i == id}
end

Public Instance Methods

all() click to toggle source
# File lib/models/seating/plan.rb, line 11
def all
  @all ||= all(all: true)
end
to_s() click to toggle source
# File lib/models/seating/plan.rb, line 7
def to_s
  name
end