Class: Brightbox::DetailedServerGroup
- Inherits:
-
ServerGroup
- Object
- Api
- ServerGroup
- Brightbox::DetailedServerGroup
- Defined in:
- lib/brightbox-cli/detailed_server_group.rb
Instance Attribute Summary
Attributes inherited from Api
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ServerGroup
all, create, #destroy, #firewall_policy, get, require_account?, #server_count, #server_ids, #server_string, #update
Methods inherited from Api
#attributes, cache_all!, cached_get, conn, #created_on, #exists?, find, find_all_or_warn, find_by_handle, find_or_call, #fog_attributes, #fog_model, #initialize, klass_name, #method_missing, require_account?, #respond_to_missing?, #to_s
Constructor Details
This class inherits a constructor from Brightbox::Api
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Brightbox::Api
Class Method Details
.default_field_order ⇒ Object
9 10 11 |
# File 'lib/brightbox-cli/detailed_server_group.rb', line 9 def self.default_field_order %i[id name servers firewall_policy description] end |
Instance Method Details
#to_row ⇒ Object
3 4 5 6 7 |
# File 'lib/brightbox-cli/detailed_server_group.rb', line 3 def to_row row_attributes = attributes row_attributes[:firewall_policy] = firewall_policy && firewall_policy.id row_attributes.to_h end |