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.
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def active @active end |
#customer ⇒ Object
Returns the value of attribute customer.
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def customer @customer end |
#id ⇒ Object
Returns the value of attribute id.
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def name @name end |
#tasks ⇒ Object
Returns the value of attribute tasks.
50 51 52 |
# File 'lib/moco/entities.rb', line 50 def tasks @tasks end |
Instance Method Details
#to_s ⇒ Object
52 53 54 |
# File 'lib/moco/entities.rb', line 52 def to_s [customer&.name, name].join(" / ") end |