Class: Ohmage::SurveyResponse
- Inherits:
-
Object
- Object
- Ohmage::SurveyResponse
- Defined in:
- lib/ohmage/entity/survey.rb
Instance Attribute Summary collapse
- #client ⇒ String readonly
- #latitude ⇒ Long readonly
- #launch_context_long ⇒ Hash readonly
- #launch_context_short ⇒ Hash readonly
-
#location_accuracy ⇒ String
readonly
Location stuffz.
-
#location_provider ⇒ String
readonly
Location stuffz.
-
#location_status ⇒ String
readonly
Location stuffz.
-
#location_timestamp ⇒ String
readonly
Location stuffz.
- #longitude ⇒ Long readonly
- #privacy_state ⇒ String readonly
- #repeatable_set_id ⇒ String readonly
- #repeatable_set_iteration ⇒ String readonly
- #responses ⇒ Hash readonly
- #survey_description ⇒ String readonly
- #survey_id ⇒ String readonly
- #survey_title ⇒ String readonly
- #time ⇒ Something Else readonly
- #timezone ⇒ String readonly
- #user ⇒ String readonly
- #utc_timestamp ⇒ Something Else readonly
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ SurveyResponse
constructor
A new instance of SurveyResponse.
Constructor Details
#initialize(attrs = {}) ⇒ SurveyResponse
Returns a new instance of SurveyResponse.
14 15 16 17 18 19 |
# File 'lib/ohmage/entity/survey.rb', line 14 def initialize(attrs = {}) @urn = attrs.keys[0].to_s attrs.values[0].each do |k, v| instance_variable_set("@#{k}", v) end end |
Instance Attribute Details
#client ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def client @client end |
#latitude ⇒ Long (readonly)
8 9 10 |
# File 'lib/ohmage/entity/survey.rb', line 8 def latitude @latitude end |
#launch_context_long ⇒ Hash (readonly)
10 11 12 |
# File 'lib/ohmage/entity/survey.rb', line 10 def launch_context_long @launch_context_long end |
#launch_context_short ⇒ Hash (readonly)
10 11 12 |
# File 'lib/ohmage/entity/survey.rb', line 10 def launch_context_short @launch_context_short end |
#location_accuracy ⇒ String (readonly)
Returns location stuffz.
6 7 8 |
# File 'lib/ohmage/entity/survey.rb', line 6 def location_accuracy @location_accuracy end |
#location_provider ⇒ String (readonly)
Returns location stuffz.
6 7 8 |
# File 'lib/ohmage/entity/survey.rb', line 6 def location_provider @location_provider end |
#location_status ⇒ String (readonly)
Returns location stuffz.
6 7 8 |
# File 'lib/ohmage/entity/survey.rb', line 6 def location_status @location_status end |
#location_timestamp ⇒ String (readonly)
Returns location stuffz.
6 7 8 |
# File 'lib/ohmage/entity/survey.rb', line 6 def @location_timestamp end |
#longitude ⇒ Long (readonly)
8 9 10 |
# File 'lib/ohmage/entity/survey.rb', line 8 def longitude @longitude end |
#privacy_state ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def privacy_state @privacy_state end |
#repeatable_set_id ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def repeatable_set_id @repeatable_set_id end |
#repeatable_set_iteration ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def repeatable_set_iteration @repeatable_set_iteration end |
#responses ⇒ Hash (readonly)
10 11 12 |
# File 'lib/ohmage/entity/survey.rb', line 10 def responses @responses end |
#survey_description ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def survey_description @survey_description end |
#survey_id ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def survey_id @survey_id end |
#survey_title ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def survey_title @survey_title end |
#time ⇒ Something Else (readonly)
12 13 14 |
# File 'lib/ohmage/entity/survey.rb', line 12 def time @time end |
#timezone ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def timezone @timezone end |
#user ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/survey.rb', line 4 def user @user end |
#utc_timestamp ⇒ Something Else (readonly)
12 13 14 |
# File 'lib/ohmage/entity/survey.rb', line 12 def @utc_timestamp end |