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?, #raw_response, #reload, #save, #update

Instance Method Details

#answersHash

READ-ONLY

Returns:

  • (Hash)

    the attribute answers as a Hash



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

attribute :answers,              Hash

#contact_idInteger

Returns the attribute contact_id as a Integer.

Returns:

  • (Integer)

    the attribute contact_id as a Integer



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

attribute :contact_id,           Integer

#dataString

Returns the attribute data as a String.

Returns:

  • (String)

    the attribute data as a String



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

attribute :data,                 String

#date_submittedDateTime

Returns the attribute date_submitted as a DateTime.

Returns:

  • (DateTime)

    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. = value
end

#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

#is_test_dataBoolean

Returns the attribute is_test_data as a Boolean.

Returns:

  • (Boolean)

    the attribute is_test_data as a Boolean



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

attribute :is_test_data,         Boolean

#metaHash

READ-ONLY

Returns:

  • (Hash)

    the attribute meta as a Hash



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

attribute :meta,                 Hash

#shownHash

READ-ONLY

Returns:

  • (Hash)

    the attribute shown as a Hash



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

attribute :shown,                Hash

#sResponseCommentString

Returns the attribute sResponseComment as a String.

Returns:

  • (String)

    the attribute sResponseComment as a String



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

attribute :sResponseComment,     String

#statusString

Returns the attribute status as a String.

Returns:

  • (String)

    the attribute status as a String



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

attribute :status,               String

#survey_idInteger

Returns the attribute survey_id as a Integer.

Returns:

  • (Integer)

    the attribute survey_id as a Integer



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

attribute :survey_id,            Integer

#to_param_optionsObject



27
28
29
# File 'lib/survey_gizmo/api/response.rb', line 27

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

#urlHash

READ-ONLY

Returns:

  • (Hash)

    the attribute url as a Hash



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

attribute :url,                  Hash

#variableHash

READ-ONLY

Returns:

  • (Hash)

    the attribute variable as a Hash



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

attribute :variable,             Hash