Class: Cb::Models::Education
- Inherits:
-
Object
- Object
- Cb::Models::Education
- Defined in:
- lib/cb/models/implementations/education.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#language ⇒ Object
Returns the value of attribute language.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Education
constructor
A new instance of Education.
Constructor Details
#initialize(args = {}) ⇒ Education
Returns a new instance of Education.
6 7 8 9 10 11 12 13 14 |
# File 'lib/cb/models/implementations/education.rb', line 6 def initialize(args = {}) return if args.nil? @code = args['Code'] || '' @language = args['Name']['@language'] unless args['Name'].nil? @text = args['Name']['#text'] unless args['Name'].nil? @language ||= '' @text ||= '' end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/cb/models/implementations/education.rb', line 4 def code @code end |
#language ⇒ Object
Returns the value of attribute language.
4 5 6 |
# File 'lib/cb/models/implementations/education.rb', line 4 def language @language end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/cb/models/implementations/education.rb', line 4 def text @text end |