Method: Fog::Compute::IBM::Mock#create_address

Defined in:
lib/fog/ibm/requests/compute/create_address.rb

#create_address(location_id, offering_id = "20001223", options = {}) ⇒ Object

[View source]

38
39
40
41
42
43
44
45
# File 'lib/fog/ibm/requests/compute/create_address.rb', line 38

def create_address(location_id, offering_id="20001223", options={})
  address         = Fog::IBM::Mock.create_address(location_id, offering_id, options)
  self.data[:addresses][address['id']] = address
  response        = Excon::Response.new
  response.status = 200
  response.body   = address
  response
end