Sha256: 7c2572c7fc444d65e8638e2b77b0e0bbe1b87a466317e676d5e83ba0e76f168d

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

class FleetAPI::Client
  class Real
    def get_machines(params={})
      request(
        :query  => query,
        :method => 'GET',
        :path   => "v1-alpha/machines",
      )
    end
  end

  class Mock
    def get_machines(params={})
      units = self.data['machines']

      response(
        :body    => {"machines" => machines},
        :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_machines.rb