Class: QuestionproRails::SurveyResponseCount
- Inherits:
-
Object
- Object
- QuestionproRails::SurveyResponseCount
- Defined in:
- lib/questionpro_rails/survey_response_count.rb
Instance Attribute Summary collapse
-
#complete_count ⇒ Object
readonly
Returns the value of attribute complete_count.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#overall_complete_count ⇒ Object
readonly
Returns the value of attribute overall_complete_count.
-
#overall_started_count ⇒ Object
readonly
Returns the value of attribute overall_started_count.
-
#overall_terminated_count ⇒ Object
readonly
Returns the value of attribute overall_terminated_count.
-
#overall_viewed_count ⇒ Object
readonly
Returns the value of attribute overall_viewed_count.
-
#partial_count ⇒ Object
readonly
Returns the value of attribute partial_count.
-
#started_count ⇒ Object
readonly
Returns the value of attribute started_count.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#terminated_count ⇒ Object
readonly
Returns the value of attribute terminated_count.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ SurveyResponseCount
constructor
A new instance of SurveyResponseCount.
Constructor Details
#initialize(attributes) ⇒ SurveyResponseCount
Returns a new instance of SurveyResponseCount.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 8 def initialize (attributes) @id = attributes['id'] @name = attributes['name'] @partial_count = attributes['partialCount'] @overall_viewed_count = attributes['overallViewedCount'] @overall_complete_count = attributes['overallCompleteCount'] @overall_terminated_count = attributes['overallTerminatedCount'] @terminated_count = attributes['terminatedCount'] @overall_started_count = attributes['overallStartedCount'] @complete_count = attributes['completeCount'] @started_count = attributes['startedCount'] @status = attributes['status'] end |
Instance Attribute Details
#complete_count ⇒ Object (readonly)
Returns the value of attribute complete_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def complete_count @complete_count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def name @name end |
#overall_complete_count ⇒ Object (readonly)
Returns the value of attribute overall_complete_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def overall_complete_count @overall_complete_count end |
#overall_started_count ⇒ Object (readonly)
Returns the value of attribute overall_started_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def overall_started_count @overall_started_count end |
#overall_terminated_count ⇒ Object (readonly)
Returns the value of attribute overall_terminated_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def overall_terminated_count @overall_terminated_count end |
#overall_viewed_count ⇒ Object (readonly)
Returns the value of attribute overall_viewed_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def overall_viewed_count @overall_viewed_count end |
#partial_count ⇒ Object (readonly)
Returns the value of attribute partial_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def partial_count @partial_count end |
#started_count ⇒ Object (readonly)
Returns the value of attribute started_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def started_count @started_count end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def status @status end |
#terminated_count ⇒ Object (readonly)
Returns the value of attribute terminated_count.
4 5 6 |
# File 'lib/questionpro_rails/survey_response_count.rb', line 4 def terminated_count @terminated_count end |