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



6
7
8
9
10
# File 'lib/cb/models/implementations/employee_type.rb', line 6

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/cb/models/implementations/employee_type.rb', line 4

def code
  @code
end

#languageObject

Returns the value of attribute language.



4
5
6
# File 'lib/cb/models/implementations/employee_type.rb', line 4

def language
  @language
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/cb/models/implementations/employee_type.rb', line 4

def name
  @name
end