Class: SurveyGizmo::API::Response
- Inherits:
-
Object
- Object
- SurveyGizmo::API::Response
- Includes:
- Resource
- Defined in:
- lib/survey_gizmo/api/response.rb
Overview
Instance Method Summary collapse
-
#answers ⇒ Hash
READ-ONLY.
-
#contact_id ⇒ Integer
The attribute
contact_id
as a Integer. -
#data ⇒ String
The attribute
data
as a String. -
#date_submitted ⇒ DateTime
The attribute
date_submitted
as a DateTime. - #datesubmitted=(value) ⇒ Object
-
#id ⇒ Integer
The attribute
id
as a Integer. -
#is_test_data ⇒ Boolean
The attribute
is_test_data
as a Boolean. -
#meta ⇒ Hash
READ-ONLY.
-
#shown ⇒ Hash
READ-ONLY.
-
#sResponseComment ⇒ String
The attribute
sResponseComment
as a String. -
#status ⇒ String
The attribute
status
as a String. -
#survey_id ⇒ Integer
The attribute
survey_id
as a Integer. - #to_param_options ⇒ Object
-
#url ⇒ Hash
READ-ONLY.
-
#variable ⇒ Hash
READ-ONLY.
Methods included from Resource
descendants, #destroy, #errors, #new?, #raw_response, #reload, #save, #update
Instance Method Details
#answers ⇒ Hash
READ-ONLY
20 |
# File 'lib/survey_gizmo/api/response.rb', line 20 attribute :answers, Hash |
#contact_id ⇒ Integer
Returns the attribute contact_id
as a Integer.
10 |
# File 'lib/survey_gizmo/api/response.rb', line 10 attribute :contact_id, Integer |
#data ⇒ String
Returns the attribute data
as a String.
11 |
# File 'lib/survey_gizmo/api/response.rb', line 11 attribute :data, String |
#date_submitted ⇒ DateTime
Returns the attribute date_submitted
as a DateTime.
13 |
# File 'lib/survey_gizmo/api/response.rb', line 13 attribute :date_submitted, DateTime |
#datesubmitted=(value) ⇒ Object
31 32 33 |
# File 'lib/survey_gizmo/api/response.rb', line 31 def datesubmitted=(value) self.date_submitted = value end |
#id ⇒ Integer
Returns the attribute id
as a Integer.
8 |
# File 'lib/survey_gizmo/api/response.rb', line 8 attribute :id, Integer |
#is_test_data ⇒ Boolean
Returns the attribute is_test_data
as a Boolean.
14 |
# File 'lib/survey_gizmo/api/response.rb', line 14 attribute :is_test_data, Boolean |
#meta ⇒ Hash
READ-ONLY
17 |
# File 'lib/survey_gizmo/api/response.rb', line 17 attribute :meta, Hash |
#shown ⇒ Hash
READ-ONLY
18 |
# File 'lib/survey_gizmo/api/response.rb', line 18 attribute :shown, Hash |
#sResponseComment ⇒ String
Returns the attribute sResponseComment
as a String.
15 |
# File 'lib/survey_gizmo/api/response.rb', line 15 attribute :sResponseComment, String |
#status ⇒ String
Returns the attribute status
as a String.
12 |
# File 'lib/survey_gizmo/api/response.rb', line 12 attribute :status, String |
#survey_id ⇒ Integer
Returns the attribute survey_id
as a Integer.
9 |
# File 'lib/survey_gizmo/api/response.rb', line 9 attribute :survey_id, Integer |
#to_param_options ⇒ Object
27 28 29 |
# File 'lib/survey_gizmo/api/response.rb', line 27 def {:id => self.id, :survey_id => self.survey_id} end |
#url ⇒ Hash
READ-ONLY
19 |
# File 'lib/survey_gizmo/api/response.rb', line 19 attribute :url, Hash |
#variable ⇒ Hash
READ-ONLY
16 |
# File 'lib/survey_gizmo/api/response.rb', line 16 attribute :variable, Hash |