Class: Cb::CbApplicationSchema::CbAnswerSchema
- Inherits:
-
Object
- Object
- Cb::CbApplicationSchema::CbAnswerSchema
- Defined in:
- lib/cb/models/cb_application_schema.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#question_id ⇒ Object
Returns the value of attribute question_id.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ CbAnswerSchema
constructor
A new instance of CbAnswerSchema.
Constructor Details
#initialize(args = {}) ⇒ CbAnswerSchema
70 71 72 73 74 75 76 |
# File 'lib/cb/models/cb_application_schema.rb', line 70 def initialize(args = {}) return if args.nil? @question_id = args['QuestionID'] @id = args['AnswerID'] @text = args['AnswerText'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
68 69 70 |
# File 'lib/cb/models/cb_application_schema.rb', line 68 def id @id end |
#question_id ⇒ Object
Returns the value of attribute question_id.
68 69 70 |
# File 'lib/cb/models/cb_application_schema.rb', line 68 def question_id @question_id end |
#text ⇒ Object
Returns the value of attribute text.
68 69 70 |
# File 'lib/cb/models/cb_application_schema.rb', line 68 def text @text end |