Class: Chiketto::Event
Instance Attribute Summary collapse
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#resource_uri ⇒ Object
readonly
Returns the value of attribute resource_uri.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Resource
endpoint, get, #initialize, query, token
Methods included from AttrDSL
Constructor Details
This class inherits a constructor from Chiketto::Resource
Instance Attribute Details
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
3 4 5 |
# File 'lib/chiketto/event.rb', line 3 def capacity @capacity end |
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
3 4 5 |
# File 'lib/chiketto/event.rb', line 3 def categories @categories end |
#resource_uri ⇒ Object (readonly)
Returns the value of attribute resource_uri.
3 4 5 |
# File 'lib/chiketto/event.rb', line 3 def resource_uri @resource_uri end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/chiketto/event.rb', line 3 def status @status end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/chiketto/event.rb', line 3 def url @url end |
Class Method Details
Instance Method Details
#attendees(params = {}) ⇒ Object
27 28 29 30 |
# File 'lib/chiketto/event.rb', line 27 def attendees(params = {}) attendees = Chiketto::Event.find_attendees @id, params attendees['attendees'].map { |att| Attendee.new att } end |
#organizer ⇒ Object
32 33 34 |
# File 'lib/chiketto/event.rb', line 32 def organizer Chiketto::Organizer.new @organizer.to_h end |
#ticket_classes ⇒ Object
36 37 38 39 40 |
# File 'lib/chiketto/event.rb', line 36 def ticket_classes @ticket_classes.map do |t_class| Chiketto::TicketClass.new t_class.to_h end end |