Class: OAuth::ServerToken — Documentation by YARD 0.9.45

# Class: OAuth::ServerToken

Inherits:
  Token
  - Object
  - Token
  - OAuth::ServerToken
  show all

Defined in:
  lib/oauth/tokens/server_token.rb

## Overview

Used on the server for generating tokens

## Instance Attribute Summary

### Attributes inherited from Token

#secret, #token

## Instance Method Summary collapse

- #initialize ⇒ ServerToken constructor

  A new instance of ServerToken.

### Methods inherited from Token

#to_query

### Methods included from Helper

_escape, escape, generate_key, generate_timestamp, normalize, normalize_nested_query, parse_header, stringify_keys, unescape

## Constructor Details

### #initialize ⇒ `ServerToken`

Returns a new instance of ServerToken.

    6
    7
    8
    # File 'lib/oauth/tokens/server_token.rb', line 6

    def initialize
      super(generate_key(16), generate_key)
    end