Class: Cb::CbCategory

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ CbCategory



4
5
6
7
8
# File 'lib/cb/models/implementations/cb_category.rb', line 4

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/cb/models/implementations/cb_category.rb', line 3

def code
  @code
end

#languageObject

Returns the value of attribute language.



3
4
5
# File 'lib/cb/models/implementations/cb_category.rb', line 3

def language
  @language
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/cb/models/implementations/cb_category.rb', line 3

def name
  @name
end

Instance Method Details

#CategoryCodeObject



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

def CategoryCode()
  @code unless @code.nil?
end

#CategoryLanguageObject



18
19
20
# File 'lib/cb/models/implementations/cb_category.rb', line 18

def CategoryLanguage()
  @language unless @language.nil?
end

#CategoryNameObject



10
11
12
# File 'lib/cb/models/implementations/cb_category.rb', line 10

def CategoryName()
  @name unless @name.nil?
end