Class: Cb::CbEmployeeType
- Inherits:
-
Object
- Object
- Cb::CbEmployeeType
- Defined in:
- lib/cb/models/cb_employee_type.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#language ⇒ Object
Returns the value of attribute language.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ CbEmployeeType
constructor
A new instance of CbEmployeeType.
Constructor Details
#initialize(args = {}) ⇒ CbEmployeeType
6 7 8 9 10 |
# File 'lib/cb/models/cb_employee_type.rb', line 6 def initialize(args={}) @code ||= args['Code'] || '' @name ||= args['Name']["#text"] || '' @language ||= args['Name']["@language"] || '' end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/cb/models/cb_employee_type.rb', line 4 def code @code end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/cb/models/cb_employee_type.rb', line 4 def language @language end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/cb/models/cb_employee_type.rb', line 4 def name @name end |