Class: Work

Inherits:
Object
  • Object
show all
Defined in:
lib/cite_mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



73
74
75
# File 'lib/cite_mapper.rb', line 73

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



73
74
75
# File 'lib/cite_mapper.rb', line 73

def name
  @name
end