class Camdram::Performance

Attributes

end_date[RW]
other_venue[RW]
start_date[RW]
time[RW]
venue[RW]

Public Class Methods

new(options = {}) click to toggle source

Instantiate a new Performance object from a JSON hash

@param options [Hash] A single JSON hash with symbolized keys. @return [Camdram::Performance] The new Performance object.

Calls superclass method Camdram::API::new
# File lib/camdram/performance.rb, line 14
def initialize(options = {})
  super(options)
  @venue = Venue.new( @venue ) unless @venue.nil?
end

Public Instance Methods

info() click to toggle source

Return a hash of the performance's attributes

@return [Hash] Hash with symbolized keys.

# File lib/camdram/performance.rb, line 22
def info
  {
    start_date: start_date,
    end_date: end_date,
    time: time,
    other_venue: other_venue,
  }
end