Class: Cb::Models::ApplicationSchema::AnswerSchema
- Inherits:
-
Object
- Object
- Cb::Models::ApplicationSchema::AnswerSchema
- Defined in:
- lib/cb/models/implementations/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 = {}) ⇒ AnswerSchema
constructor
A new instance of AnswerSchema.
Constructor Details
#initialize(args = {}) ⇒ AnswerSchema
Returns a new instance of AnswerSchema.
66 67 68 69 70 71 72 |
# File 'lib/cb/models/implementations/application_schema.rb', line 66 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.
64 65 66 |
# File 'lib/cb/models/implementations/application_schema.rb', line 64 def id @id end |
#question_id ⇒ Object
Returns the value of attribute question_id.
64 65 66 |
# File 'lib/cb/models/implementations/application_schema.rb', line 64 def question_id @question_id end |
#text ⇒ Object
Returns the value of attribute text.
64 65 66 |
# File 'lib/cb/models/implementations/application_schema.rb', line 64 def text @text end |