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.
16 17 18 19 20 21 22 23 24 |
# File 'lib/cb/models/implementations/education.rb', line 16 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.
14 15 16 |
# File 'lib/cb/models/implementations/education.rb', line 14 def code @code end |
#language ⇒ Object
Returns the value of attribute language.
14 15 16 |
# File 'lib/cb/models/implementations/education.rb', line 14 def language @language end |
#text ⇒ Object
Returns the value of attribute text.
14 15 16 |
# File 'lib/cb/models/implementations/education.rb', line 14 def text @text end |