Class: Cb::Models::EmployeeType

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/employee_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ EmployeeType

Returns a new instance of EmployeeType.



16
17
18
19
20
# File 'lib/cb/models/implementations/employee_type.rb', line 16

def initialize(args = {})
  @code			= args['Code'] || ''
  @name			= args['Name']['#text']     rescue ''
  @language	= args['Name']['@language'] rescue ''
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



14
15
16
# File 'lib/cb/models/implementations/employee_type.rb', line 14

def code
  @code
end

#languageObject

Returns the value of attribute language.



14
15
16
# File 'lib/cb/models/implementations/employee_type.rb', line 14

def language
  @language
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/cb/models/implementations/employee_type.rb', line 14

def name
  @name
end