Sha256: 1ba2e6d61b99aec17401ac9ac012b81a37d93e9da2c52b4a85ccd1ddf6fdf218
Contents?: true
Size: 707 Bytes
Versions: 79
Compression:
Stored size: 707 Bytes
Contents
module Fog module Compute class Linode class Real def linode_update(linode_id, options={}) request( :expects => 200, :method => 'GET', :query => { :api_action => 'linode.update', :linodeId => linode_id }.merge!(options) ) end end class Mock def linode_update(linode_id, options={}) response = Excon::Response.new response.status = 200 response.body = { "ERRORARRAY" => [], "ACTION" => "linode.update", "DATA" => { "LinodeID" => rand(1000..9999) } } response end end end end end
Version data entries
79 entries across 79 versions & 12 rubygems