Class: Camdram::Event
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#other_venue ⇒ Object
Returns the value of attribute other_venue.
-
#show ⇒ Object
Returns the value of attribute show.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#time ⇒ Object
Returns the value of attribute time.
-
#venue ⇒ Object
Returns the value of attribute venue.
Attributes included from API
Instance Method Summary collapse
-
#info ⇒ Hash
Return a hash of the image's attributes.
-
#initialize(options = {}) ⇒ Camdram::Event
constructor
Instantiate a new Event object from a JSON hash.
Methods included from API
Constructor Details
#initialize(options = {}) ⇒ Camdram::Event
Instantiate a new Event object from a JSON hash
15 16 17 18 19 |
# File 'lib/camdram/event.rb', line 15 def initialize( = {}) super() @show = Show.new( @show ) unless @show.nil? @venue = Venue.new( @venue ) unless @venue.nil? end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def end_date @end_date end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def id @id end |
#other_venue ⇒ Object
Returns the value of attribute other_venue.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def other_venue @other_venue end |
#show ⇒ Object
Returns the value of attribute show.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def show @show end |
#start_date ⇒ Object
Returns the value of attribute start_date.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def start_date @start_date end |
#time ⇒ Object
Returns the value of attribute time.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def time @time end |
#venue ⇒ Object
Returns the value of attribute venue.
9 10 11 |
# File 'lib/camdram/event.rb', line 9 def venue @venue end |
Instance Method Details
#info ⇒ Hash
Return a hash of the image's attributes
24 25 26 27 28 29 30 31 32 33 34 |
# 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 |