class Camdram::Event
Attributes
end_date[RW]
id[RW]
other_venue[RW]
show[RW]
start_date[RW]
time[RW]
venue[RW]
Public Class Methods
new(options = {})
click to toggle source
Instantiate a new Event
object from a JSON hash
@param options [Hash] A single JSON hash with symbolized keys. @return [Camdram::Event] The new Event
object.
Calls superclass method
Camdram::API::new
# File lib/camdram/event.rb, line 15 def initialize(options = {}) super(options) @show = Show.new( @show ) unless @show.nil? @venue = Venue.new( @venue ) unless @venue.nil? end
Public Instance Methods
info()
click to toggle source
Return a hash of the image's attributes
@return [Hash] Hash with symbolized keys.
# File lib/camdram/event.rb, line 24 def info { id: id, start_date: start_date, end_date: end_date, time: time, other_venue: other_venue, show: show, venue: venue, } end