Class: Softlayer::Survey
- Defined in:
- lib/softlayer/survey.rb,
lib/softlayer/survey/type.rb,
lib/softlayer/survey/answer.rb,
lib/softlayer/survey/status.rb,
lib/softlayer/survey/question.rb,
lib/softlayer/survey/response.rb
Defined Under Namespace
Classes: Answer, Question, Representer, Response, Status, Type
Constant Summary collapse
- SERVICE =
'SoftLayer_Survey'
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#question_count ⇒ Object
Returns the value of attribute question_count.
-
#questions ⇒ Object
Returns the value of attribute questions.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_id ⇒ Object
Returns the value of attribute type_id.
Class Method Summary collapse
Instance Method Summary collapse
- #get_object ⇒ Object
- #get_questions ⇒ Object
- #get_status ⇒ Object
- #get_type ⇒ Object
-
#take_survey(message) ⇒ Object
responses.
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
9 10 11 |
# File 'lib/softlayer/survey.rb', line 9 def active @active end |
#create_date ⇒ Object
Returns the value of attribute create_date.
10 11 12 |
# File 'lib/softlayer/survey.rb', line 10 def create_date @create_date end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/softlayer/survey.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/softlayer/survey.rb', line 12 def name @name end |
#question_count ⇒ Object
Returns the value of attribute question_count.
15 16 17 |
# File 'lib/softlayer/survey.rb', line 15 def question_count @question_count end |
#questions ⇒ Object
Returns the value of attribute questions.
16 17 18 |
# File 'lib/softlayer/survey.rb', line 16 def questions @questions end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/softlayer/survey.rb', line 17 def status @status end |
#status_id ⇒ Object
Returns the value of attribute status_id.
13 14 15 |
# File 'lib/softlayer/survey.rb', line 13 def status_id @status_id end |
#type ⇒ Object
Returns the value of attribute type.
18 19 20 |
# File 'lib/softlayer/survey.rb', line 18 def type @type end |
#type_id ⇒ Object
Returns the value of attribute type_id.
14 15 16 |
# File 'lib/softlayer/survey.rb', line 14 def type_id @type_id end |
Class Method Details
Instance Method Details
#get_object ⇒ Object
25 26 27 |
# File 'lib/softlayer/survey.rb', line 25 def get_object request(:get_object, Softlayer::Survey) end |
#get_questions ⇒ Object
29 30 31 |
# File 'lib/softlayer/survey.rb', line 29 def get_questions request(:get_questions, Array[Softlayer::Survey::Question]) end |
#get_status ⇒ Object
33 34 35 |
# File 'lib/softlayer/survey.rb', line 33 def get_status request(:get_status, Softlayer::Survey::Status) end |
#get_type ⇒ Object
37 38 39 |
# File 'lib/softlayer/survey.rb', line 37 def get_type request(:get_type, Softlayer::Survey::Type) end |
#take_survey(message) ⇒ Object
responses
42 43 44 |
# File 'lib/softlayer/survey.rb', line 42 def take_survey() request(:take_survey, Boolean, ) end |