Sha256: 677dd33478a80669f5c5efbf210ebff325eeb689de68d1666b5a5ac68fc7d9ec
Contents?: true
Size: 705 Bytes
Versions: 43
Compression:
Stored size: 705 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
43 entries across 41 versions & 6 rubygems