Class: QuestionproRails::SurveyResponseCount

Inherits:
Object
  • Object
show all
Defined in:
lib/questionpro_rails/survey_response_count.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject (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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/questionpro_rails/survey_response_count.rb', line 4

def id
  @id
end

#nameObject (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_countObject (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_countObject (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_countObject (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_countObject (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_countObject (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_countObject (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

#statusObject (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_countObject (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