Sha256: 4bce1c5a963b375fdaaa3c4787aedd9d9d97a4a384a4386d6fdf48cfe6eb2916

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

module Spektrix
  module Tickets
    class Band
      include Spektrix::Base
      collection_path "bands"

      def to_s
        self.name
      end

      # The API doesn't allow you to filter by band_id, so we get all and find() in ruby
      def self.find(id)
        all.to_a.find {|b| b.id.to_i == id}
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spektrix-0.0.2.5 lib/models/tickets/band.rb
spektrix-0.0.2.4 lib/models/tickets/band.rb
spektrix-0.0.2.3 lib/models/tickets/band.rb
spektrix-0.0.2.1 lib/models/tickets/band.rb