Class: Fog::DNS::Bluebox::Mock
- Inherits:
-
Object
- Object
- Fog::DNS::Bluebox::Mock
- Defined in:
- lib/fog/bluebox/dns.rb,
lib/fog/bluebox/requests/dns/get_zone.rb,
lib/fog/bluebox/requests/dns/get_zones.rb,
lib/fog/bluebox/requests/dns/get_record.rb,
lib/fog/bluebox/requests/dns/create_zone.rb,
lib/fog/bluebox/requests/dns/delete_zone.rb,
lib/fog/bluebox/requests/dns/get_records.rb,
lib/fog/bluebox/requests/dns/update_zone.rb,
lib/fog/bluebox/requests/dns/create_record.rb,
lib/fog/bluebox/requests/dns/delete_record.rb
Class Method Summary collapse
Instance Method Summary collapse
- #create_record(zone_id, type, name, content) ⇒ Object
- #create_zone(options) ⇒ Object
- #data ⇒ Object
- #delete_record(zone_id, record_id) ⇒ Object
- #delete_zone(zone_id) ⇒ Object
- #get_record(record_id) ⇒ Object
- #get_records ⇒ Object
- #get_zone(zone_id) ⇒ Object
- #get_zones ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #reset_data ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
38 39 40 41 |
# File 'lib/fog/bluebox/dns.rb', line 38 def initialize(={}) @bluebox_customer_id = [:bluebox_customer_id] @bluebox_api_key = [:bluebox_api_key] end |
Class Method Details
.data ⇒ Object
28 29 30 31 32 |
# File 'lib/fog/bluebox/dns.rb', line 28 def self.data @data ||= Hash.new do |hash, key| hash[key] = {} end end |
.reset ⇒ Object
34 35 36 |
# File 'lib/fog/bluebox/dns.rb', line 34 def self.reset @data = nil end |
Instance Method Details
#create_record(zone_id, type, name, content) ⇒ Object
20 21 22 |
# File 'lib/fog/bluebox/requests/dns/update_zone.rb', line 20 def create_record(zone_id, type, domain, content) Fog::Mock.not_implemented end |
#create_zone(options) ⇒ Object
42 43 44 |
# File 'lib/fog/bluebox/requests/dns/create_zone.rb', line 42 def create_zone() Fog::Mock.not_implemented end |
#data ⇒ Object
43 44 45 |
# File 'lib/fog/bluebox/dns.rb', line 43 def data self.class.data[@bluebox_customer_id] end |
#delete_record(zone_id, record_id) ⇒ Object
21 22 23 |
# File 'lib/fog/bluebox/requests/dns/delete_record.rb', line 21 def delete_record(zone_id, record_id) Fog::Mock.not_implemented end |
#delete_zone(zone_id) ⇒ Object
21 22 23 |
# File 'lib/fog/bluebox/requests/dns/delete_zone.rb', line 21 def delete_zone(zone_id) Fog::Mock.not_implemented end |
#get_record(record_id) ⇒ Object
30 31 32 |
# File 'lib/fog/bluebox/requests/dns/get_record.rb', line 30 def get_record(record_id) Fog::Mock.not_implemented end |
#get_records ⇒ Object
31 32 33 |
# File 'lib/fog/bluebox/requests/dns/get_records.rb', line 31 def get_records Fog::Mock.not_implemented end |
#get_zone(zone_id) ⇒ Object
34 35 36 |
# File 'lib/fog/bluebox/requests/dns/get_zone.rb', line 34 def get_zone(zone_id) Fog::Mock.not_implemented end |
#get_zones ⇒ Object
33 34 35 |
# File 'lib/fog/bluebox/requests/dns/get_zones.rb', line 33 def get_zones Fog::Mock.not_implemented end |
#reset_data ⇒ Object
47 48 49 |
# File 'lib/fog/bluebox/dns.rb', line 47 def reset_data self.class.data.delete(@bluebox_customer_id) end |