Class: Spektrix::Events::Instance
- Inherits:
-
Object
- Object
- Spektrix::Events::Instance
show all
- Includes:
- Base
- Defined in:
- lib/models/events/instance.rb
Overview
Instance Method Summary
collapse
Methods included from Base
included, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Spektrix::Base
Instance Method Details
#event_object ⇒ Object
42
43
44
|
# File 'lib/models/events/instance.rb', line 42
def event_object
Event.where(event_id: event[:id]).first
end
|
#price_list_object ⇒ Object
38
39
40
|
# File 'lib/models/events/instance.rb', line 38
def price_list_object
Tickets::PriceList.where(instance_id: self.id).first
end
|
#status ⇒ Object
34
35
36
|
# File 'lib/models/events/instance.rb', line 34
def status
InstanceStatus.where(instance_id: self.id).first
end
|