Class: Mass::Event
- Inherits:
-
BlackStack::Base
- Object
- BlackStack::Base
- Mass::Event
- Defined in:
- lib/base-line/event.rb
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#lead ⇒ Object
Returns the value of attribute lead.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(h) ⇒ Event
constructor
A new instance of Event.
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
#company ⇒ Object
Returns the value of attribute company.
3 4 5 |
# File 'lib/base-line/event.rb', line 3 def company @company end |
#lead ⇒ Object
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_name ⇒ Object
5 6 7 |
# File 'lib/base-line/event.rb', line 5 def self.object_name 'event' end |