Sha256: 70c33c828657f5c8099390f5b15fc831bc660a5527cebf17475732115c0ebaef

Contents?: true

Size: 936 Bytes

Versions: 20

Compression:

Stored size: 936 Bytes

Contents

module Fog
  module OpenStack
    class Image
      class V2
        class Real
          def get_member_details(image_id, member_id)
            request(
              :expects => [200],
              :method  => 'GET',
              :path    => "images/#{image_id}/members/#{member_id}"
            ).body
          end
        end

        class Mock
          def get_member_details(_image_id, _member_id)
            response = Excon::Response.new
            response.status = 200
            response.body = {
              :status     => "pending",
              :created_at => "2013-11-26T07:21:21Z",
              :updated_at => "2013-11-26T07:21:21Z",
              :image_id   => "0ae74cc5-5147-4239-9ce2-b0c580f7067e",
              :member_id  => "8989447062e04a818baf9e073fd04fa7",
              :schema     => "/v2/schemas/member"
            }
            response
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.1.2 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-fork-99 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.1.0 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.1.0.pre lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.11 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.10 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.9 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.8 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.7 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.6 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.5 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.4 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.3 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.2 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.1 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-1.0.0 lib/fog/openstack/image/v2/requests/get_member_details.rb
fog-openstack-0.3.1 lib/fog/openstack/image/v2/requests/get_member_details.rb