Sha256: 316c5443180025aee18096eddca1189cb69d08f0fc64f68c637a0c2d42463cb1

Contents?: true

Size: 404 Bytes

Versions: 34

Compression:

Stored size: 404 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_blueprint(params={})
      id  = params.delete("id")
      url = params.delete("url")

      request(
        :path => "blueprints/#{id}",
        :url  => url,
      )
    end
  end

  class Mock
    def get_blueprint(params={})
      response(
        :body => {"blueprint" => self.find(:blueprints, resource_identity(params))}
      )
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/get_blueprint.rb
ey-core-3.6.3 lib/ey-core/requests/get_blueprint.rb
ey-core-3.6.1 lib/ey-core/requests/get_blueprint.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_blueprint.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_blueprint.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_blueprint.rb
ey-core-3.5.0 lib/ey-core/requests/get_blueprint.rb
ey-core-3.4.4 lib/ey-core/requests/get_blueprint.rb
ey-core-3.4.2 lib/ey-core/requests/get_blueprint.rb
ey-core-3.4.1 lib/ey-core/requests/get_blueprint.rb
ey-core-3.4.0 lib/ey-core/requests/get_blueprint.rb
ey-core-3.3.1 lib/ey-core/requests/get_blueprint.rb
ey-core-3.3.0 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.6 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.5 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.4 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.3 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.2 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.1 lib/ey-core/requests/get_blueprint.rb
ey-core-3.2.0 lib/ey-core/requests/get_blueprint.rb