Class: Panda::Profile
- Includes:
- Updatable
- Defined in:
- lib/panda/resources/profile.rb
Constant Summary
Constants included from Router
Router::DEFAULT_FORMAT, Router::VAR_PATTERN
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#command ⇒ Object
override attributes command and preset_name to ovoid <method undefined> when profile is a preset or not.
- #preset? ⇒ Boolean
- #preset_name ⇒ Object
Methods included from Updatable
#save, #save!, #update, #update_attribute, #update_attributes
Methods inherited from Resource
#cloud, cloud, #create, #create!, #initialize, method_missing, #reload
Methods included from CloudConnection
Methods included from Finders::FindMany
Methods included from Associations
Methods included from Builders
Methods inherited from Base
#changed?, #delete, end_class_name, id, #id, #id=, #initialize, #new?, #reload, #to_json
Methods included from Router
Constructor Details
This class inherits a constructor from Panda::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Panda::Base
Instance Method Details
#command ⇒ Object
override attributes command and preset_name to ovoid <method undefined> when profile is a preset or not
13 14 15 |
# File 'lib/panda/resources/profile.rb', line 13 def command @attributes['command'] end |
#preset? ⇒ Boolean
7 8 9 |
# File 'lib/panda/resources/profile.rb', line 7 def preset? !preset_name end |
#preset_name ⇒ Object
17 18 19 |
# File 'lib/panda/resources/profile.rb', line 17 def preset_name @attributes['preset_name'] end |