Class: SimpleTwitterOAuth::AccessToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(screen_name:, token:, secret:) ⇒ AccessToken

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 AccessToken.



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

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

Instance Attribute Details

#screen_nameObject (readonly)

Returns the value of attribute screen_name.



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

def screen_name
  @screen_name
end

#secretObject (readonly)

Returns the value of attribute secret.



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

def secret
  @secret
end

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end