Class: Brightbox::Zone
- Inherits:
-
Api
- Object
- Api
- Brightbox::Zone
show all
- Defined in:
- lib/bbcloud/zones.rb
Instance Attribute Summary
Attributes inherited from Api
#id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Api
cache_all!, cached_get, conn, #exists?, find, find_by_handle, #fog_model, #initialize, #method_missing
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
.all ⇒ Object
7
8
9
|
# File 'lib/bbcloud/zones.rb', line 7
def self.all
conn.zones
end
|
.default_field_order ⇒ Object
15
16
17
|
# File 'lib/bbcloud/zones.rb', line 15
def self.default_field_order
[:id, :handle]
end
|
.get(id) ⇒ Object
11
12
13
|
# File 'lib/bbcloud/zones.rb', line 11
def self.get(id)
conn.zones.get id
end
|
Instance Method Details
#render_cell ⇒ Object
23
24
25
|
# File 'lib/bbcloud/zones.rb', line 23
def render_cell
handle if fog_model
end
|
#to_row ⇒ Object
3
4
5
|
# File 'lib/bbcloud/zones.rb', line 3
def to_row
attributes
end
|
#to_s ⇒ Object
19
20
21
|
# File 'lib/bbcloud/zones.rb', line 19
def to_s
@id
end
|