Class: Mass::Event

Inherits:
BlackStack::Base
  • Object
show all
Defined in:
lib/base-line/event.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ Event

Returns a new instance of Event.



9
10
11
12
13
# File 'lib/base-line/event.rb', line 9

def initialize(h)
    super(h)
    #self.lead = Mass::Lead.new(h['lead_desc']).child_class_instance if h['lead_desc']
    #self.company = Mass::Company.new(h['company_desc']).child_class_instance if h['company_desc']
end

Instance Attribute Details

#companyObject

Returns the value of attribute company.



3
4
5
# File 'lib/base-line/event.rb', line 3

def company
  @company
end

#leadObject

Returns the value of attribute lead.



3
4
5
# File 'lib/base-line/event.rb', line 3

def lead
  @lead
end

Class Method Details

.object_nameObject



5
6
7
# File 'lib/base-line/event.rb', line 5

def self.object_name
    'event'
end