Class: SimpleTwitterOAuth::RequestToken

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_twitter_oauth/request_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token:, secret:, authorize_url:) ⇒ RequestToken

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of RequestToken


6
7
8
9
10
11
# File 'lib/simple_twitter_oauth/request_token.rb', line 6

def initialize(token:, secret:, authorize_url:)
  @token = token
  @secret = secret
  @authorize_url = authorize_url
  freeze
end

Instance Attribute Details

#authorize_urlObject (readonly)

Returns the value of attribute authorize_url


3
4
5
# File 'lib/simple_twitter_oauth/request_token.rb', line 3

def authorize_url
  @authorize_url
end

#secretObject (readonly)

Returns the value of attribute secret


3
4
5
# File 'lib/simple_twitter_oauth/request_token.rb', line 3

def secret
  @secret
end

#tokenObject (readonly)

Returns the value of attribute token


3
4
5
# File 'lib/simple_twitter_oauth/request_token.rb', line 3

def token
  @token
end