Class: Spektrix::Events::Instance

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/models/events/instance.rb

Overview

An event instance.

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_objectObject



42
43
44
# File 'lib/models/events/instance.rb', line 42

def event_object
  Event.where(event_id: event[:id]).first
end

#price_list_objectObject



38
39
40
# File 'lib/models/events/instance.rb', line 38

def price_list_object
  Tickets::PriceList.where(instance_id: self.id).first
end

#statusObject



34
35
36
# File 'lib/models/events/instance.rb', line 34

def status
  InstanceStatus.where(instance_id: self.id).first
end