Sha256: 0aedbe16634933b04f5ebc8c9a0e2a870082c2a4be32fdfb6bb868233b2f834c
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
class FleetAPI::Client class Real def get_units(params={}) request( :method => 'GET', :path => "v1-alpha/units", ) end end class Mock def get_units(params={}) units = page(params, :units, "unit") response( :body => {"units" => units}, :status => 200, :headers => { "Content-Type" => "application/json; charset=utf8", } ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coreos-fleet-api-0.1.0 | lib/fleet_api/requests/get_units.rb |