Class: MOCO::Project

Inherits:
BaseEntity show all
Defined in:
lib/moco/entities.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseEntity

#==, #eql?, #hash, #to_h, #to_json

Instance Attribute Details

#activeObject

Returns the value of attribute active.



50
51
52
# File 'lib/moco/entities.rb', line 50

def active
  @active
end

#customerObject

Returns the value of attribute customer.



50
51
52
# File 'lib/moco/entities.rb', line 50

def customer
  @customer
end

#idObject

Returns the value of attribute id.



50
51
52
# File 'lib/moco/entities.rb', line 50

def id
  @id
end

#nameObject

Returns the value of attribute name.



50
51
52
# File 'lib/moco/entities.rb', line 50

def name
  @name
end

#tasksObject

Returns the value of attribute tasks.



50
51
52
# File 'lib/moco/entities.rb', line 50

def tasks
  @tasks
end

Instance Method Details

#to_sObject



52
53
54
# File 'lib/moco/entities.rb', line 52

def to_s
  [customer&.name, name].join(" / ")
end