Class: Brightbox::Zone

Inherits:
Api
  • Object
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

.allObject



7
8
9
# File 'lib/bbcloud/zones.rb', line 7

def self.all
  conn.zones
end

.default_field_orderObject



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_cellObject



23
24
25
# File 'lib/bbcloud/zones.rb', line 23

def render_cell
  handle if fog_model
end

#to_rowObject



3
4
5
# File 'lib/bbcloud/zones.rb', line 3

def to_row
  attributes
end

#to_sObject



19
20
21
# File 'lib/bbcloud/zones.rb', line 19

def to_s
  @id
end