Class: SurveyGizmo::API::Page
- Inherits:
-
Object
- Object
- SurveyGizmo::API::Page
show all
- Includes:
- Resource
- Defined in:
- lib/survey_gizmo/api/page.rb
Overview
Instance Method Summary
collapse
Methods included from Resource
descendants, #destroy, #errors, #new?, #raw_response, #reload, #save, #update
Instance Method Details
#after ⇒ Integer
12
|
# File 'lib/survey_gizmo/api/page.rb', line 12
attribute :after, Integer
|
#description ⇒ String
10
|
# File 'lib/survey_gizmo/api/page.rb', line 10
attribute :description, String
|
#id ⇒ Integer
8
|
# File 'lib/survey_gizmo/api/page.rb', line 8
attribute :id, Integer
|
#properties ⇒ Hash
11
|
# File 'lib/survey_gizmo/api/page.rb', line 11
attribute :properties, Hash
|
#survey_id ⇒ Integer
13
|
# File 'lib/survey_gizmo/api/page.rb', line 13
attribute :survey_id, Integer
|
#title ⇒ Hash
9
|
# File 'lib/survey_gizmo/api/page.rb', line 9
attribute :title, Hash
|
#title_with_multilingual=(val) ⇒ Object
survey gizmo sends a hash back for :title
25
26
27
|
# File 'lib/survey_gizmo/api/page.rb', line 25
def title_with_multilingual=(val)
self.title_without_multilingual = val.is_a?(Hash) ? val : { "English" => val }
end
|
#to_param_options ⇒ Object
32
33
34
|
# File 'lib/survey_gizmo/api/page.rb', line 32
def to_param_options
{:id => self.id, :survey_id => self.survey_id}
end
|