Class: Work
- Inherits:
-
Object
- Object
- Work
- Defined in:
- lib/cite_mapper.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name) ⇒ Work
constructor
A new instance of Work.
Constructor Details
#initialize(id, name) ⇒ Work
Returns a new instance of Work.
75 76 77 78 |
# File 'lib/cite_mapper.rb', line 75 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
73 74 75 |
# File 'lib/cite_mapper.rb', line 73 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
73 74 75 |
# File 'lib/cite_mapper.rb', line 73 def name @name end |