Sha256: e6bceaf63524a6626acbbd2ec98cdf7539e49cd117a5fdf85a8f4bab9fd87d19

Contents?: true

Size: 390 Bytes

Versions: 36

Compression:

Stored size: 390 Bytes

Contents

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

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

  class Mock
    def get_token(options={})
      response(
        :body => {"token" => self.find(:tokens, resource_identity(options))},
      )
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

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