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.



48
49
50
# File 'lib/moco/entities.rb', line 48

def active
  @active
end

#customerObject

Returns the value of attribute customer.



48
49
50
# File 'lib/moco/entities.rb', line 48

def customer
  @customer
end

#idObject

Returns the value of attribute id.



48
49
50
# File 'lib/moco/entities.rb', line 48

def id
  @id
end

#nameObject

Returns the value of attribute name.



48
49
50
# File 'lib/moco/entities.rb', line 48

def name
  @name
end

#tasksObject

Returns the value of attribute tasks.



48
49
50
# File 'lib/moco/entities.rb', line 48

def tasks
  @tasks
end

Instance Method Details

#to_sObject



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

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