Class: Softlayer::Scale::Policy::Action::Scale
- Inherits:
-
Softlayer::Scale::Policy::Action
- Object
- Model
- Entity
- Softlayer::Scale::Policy::Action
- Softlayer::Scale::Policy::Action::Scale
- Defined in:
- lib/softlayer/scale/policy/action/scale.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Scale_Policy_Action_Scale'
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#scale_type ⇒ Object
Returns the value of attribute scale_type.
Attributes inherited from Softlayer::Scale::Policy::Action
#create_date, #delete_flag, #id, #modify_date, #scale_policy, #scale_policy_id, #type, #type_id
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #get_object ⇒ Object
- #get_scale_policy ⇒ Object
- #get_type ⇒ Object
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
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/softlayer/scale/policy/action/scale.rb', line 7 def amount @amount end |
#scale_type ⇒ Object
Returns the value of attribute scale_type.
8 9 10 |
# File 'lib/softlayer/scale/policy/action/scale.rb', line 8 def scale_type @scale_type end |
Class Method Details
Instance Method Details
#delete_object ⇒ Object
15 16 17 |
# File 'lib/softlayer/scale/policy/action/scale.rb', line 15 def delete_object request(:delete_object, Boolean) end |
#edit_object(message) ⇒ Object
template_object
20 21 22 |
# File 'lib/softlayer/scale/policy/action/scale.rb', line 20 def edit_object() request(:edit_object, Boolean, ) end |
#get_object ⇒ Object
24 25 26 |
# File 'lib/softlayer/scale/policy/action/scale.rb', line 24 def get_object request(:get_object, Softlayer::Scale::Policy::Action::Scale) end |