Class: MOCO::Project
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::Project
- Defined in:
- lib/moco/entities.rb
Overview
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Instance Method Summary collapse
Methods inherited from BaseEntity
#==, #eql?, #hash, #to_h, #to_json
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
48 49 50 |
# File 'lib/moco/entities.rb', line 48 def active @active end |
#customer ⇒ Object
Returns the value of attribute customer.
48 49 50 |
# File 'lib/moco/entities.rb', line 48 def customer @customer end |
#id ⇒ Object
Returns the value of attribute id.
48 49 50 |
# File 'lib/moco/entities.rb', line 48 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
48 49 50 |
# File 'lib/moco/entities.rb', line 48 def name @name end |
#tasks ⇒ Object
Returns the value of attribute tasks.
48 49 50 |
# File 'lib/moco/entities.rb', line 48 def tasks @tasks end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def to_s [customer&.name, name].join(" / ") end |