Class: Projects::Model::Owner
- Inherits:
-
Object
- Object
- Projects::Model::Owner
- Defined in:
- lib/projects/model/Owner.rb
Overview
-
This class is used to make an object for Owner.
Instance Method Summary collapse
-
#getId ⇒ Object
-
Get the owner id.
-
-
#getName ⇒ Object
-
Get the owner name.
-
-
#setId(id) ⇒ Object
-
Set the owner id.
-
-
#setName(name) ⇒ Object
-
Set the owner name.
-
Instance Method Details
#getId ⇒ Object
-
Get the owner id.
Returns
-
Owner id.
49 50 51 |
# File 'lib/projects/model/Owner.rb', line 49 def getId return @id end |
#getName ⇒ Object
-
Get the owner name.
Returns
-
Owner name.
29 30 31 |
# File 'lib/projects/model/Owner.rb', line 29 def getName return @name end |
#setId(id) ⇒ Object
-
Set the owner id.
Parameters
- id
-
ID of the owner.
-
39 40 41 |
# File 'lib/projects/model/Owner.rb', line 39 def setId(id) @id = id end |
#setName(name) ⇒ Object
-
Set the owner name.
Parameters
- name
-
Name of the owner.
-
19 20 21 |
# File 'lib/projects/model/Owner.rb', line 19 def setName(name) @name = name end |