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-pro-cli-0.0.16 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.15 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.14 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.13 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.12 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.11 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.10 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.9 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.8 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.7 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.6 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.5 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.4 lib/vendor/core/ey-core/requests/create_token.rb
ey-pro-cli-0.0.3 lib/vendor/core/ey-core/requests/create_token.rb