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
-
#data ⇒ String
The attribute
data
as a String. -
#id ⇒ Integer
The attribute
id
as a Integer. -
#status ⇒ String
The attribute
status
as a String. -
#survey_id ⇒ Integer
The attribute
survey_id
as a Integer. - #to_param_options ⇒ Object
Methods included from Resource
descendants, #destroy, #errors, #new?, #reload, #save, #update
Instance Method Details
#data ⇒ String
Returns the attribute data
as a String.
9 |
# File 'lib/survey_gizmo/api/response.rb', line 9 attribute :data, String |
#id ⇒ Integer
Returns the attribute id
as a Integer.
8 |
# File 'lib/survey_gizmo/api/response.rb', line 8 attribute :id, Integer |
#status ⇒ String
Returns the attribute status
as a String.
10 |
# File 'lib/survey_gizmo/api/response.rb', line 10 attribute :status, String |
#survey_id ⇒ Integer
Returns the attribute survey_id
as a Integer.
11 |
# File 'lib/survey_gizmo/api/response.rb', line 11 attribute :survey_id, Integer |
#to_param_options ⇒ Object
18 19 20 |
# File 'lib/survey_gizmo/api/response.rb', line 18 def {:id => self.id, :survey_id => self.survey_id} end |