Sha256: ade58dc002bc6e6acd9e1997ef3832675e5d69e4a7d304b43effb8c2f48786e0

Contents?: true

Size: 486 Bytes

Versions: 54

Compression:

Stored size: 486 Bytes

Contents

class Ey::Core::Client
  class Real
    def create_token(params={})

      request(
        :method => :post,
        :path   => "tokens",
        :params => params,
      )
    end
  end # Real

  class Mock
    def create_token(params={})
      response(
        :body    => {"token" => {"auth_id" => self.uuid}},
        :status  => 201,
        :headers => {
          "Content-Type" => "application/json; charset=utf8"
        }
      )
    end
  end # Mock
end # Ey::Core::Client

Version data entries

54 entries across 54 versions & 3 rubygems

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