signet - Class Signet::OAuth1::Credential (v0.21.0)

Reference documentation and code samples for the signet class Signet::OAuth1::Credential.

Inherits

  • Object

Methods

#==

def ==(other)

#initialize

def initialize(*args) -> Credential

Creates a token object from a key and secret.

Returns
Raises
  • (TypeError)
Examples
Signet::OAuth1::Credential.new(  :key => "dpf43f3p2l4k3l03",  :secret => "kd94hf93k423kf44" )
Signet::OAuth1::Credential.new([  ["oauth_token", "dpf43f3p2l4k3l03"],  ["oauth_token_secret", "kd94hf93k423kf44"] ])
Signet::OAuth1::Credential.new(  "dpf43f3p2l4k3l03", "kd94hf93k423kf44" )

#key

def key()

Returns the value of attribute key.

#key=

def key=(value)

Sets the attribute key

#secret

def secret()

Returns the value of attribute secret.

#secret=

def secret=(value)

Sets the attribute secret

#to_h

def to_h()
Alias Of: #to_hash

#to_hash

def to_hash()
Aliases