Class: SurveyGizmo::API::Response

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/survey_gizmo/api/response.rb

Overview

Instance Method Summary collapse

Methods included from Resource

descendants, #destroy, #errors, #new?, #reload, #save, #update

Instance Method Details

#dataString

Returns the attribute data as a String.

Returns:

  • (String)

    the attribute data as a String



9
# File 'lib/survey_gizmo/api/response.rb', line 9

attribute :data,          String

#idInteger

Returns the attribute id as a Integer.

Returns:

  • (Integer)

    the attribute id as a Integer



8
# File 'lib/survey_gizmo/api/response.rb', line 8

attribute :id,            Integer

#statusString

Returns the attribute status as a String.

Returns:

  • (String)

    the attribute status as a String



10
# File 'lib/survey_gizmo/api/response.rb', line 10

attribute :status,        String

#survey_idInteger

Returns the attribute survey_id as a Integer.

Returns:

  • (Integer)

    the attribute survey_id as a Integer



11
# File 'lib/survey_gizmo/api/response.rb', line 11

attribute :survey_id,     Integer

#to_param_optionsObject



18
19
20
# File 'lib/survey_gizmo/api/response.rb', line 18

def to_param_options
  {:id => self.id, :survey_id => self.survey_id}
end