Class: SimpleTwitterOAuth::AccessToken
- Inherits:
-
Object
- Object
- SimpleTwitterOAuth::AccessToken
- Defined in:
- lib/simple_twitter_oauth/access_token.rb
Instance Attribute Summary collapse
-
#screen_name ⇒ Object
readonly
Returns the value of attribute screen_name.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(screen_name:, token:, secret:) ⇒ AccessToken
constructor
private
A new instance of AccessToken.
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_name ⇒ Object (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 |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
3 4 5 |
# File 'lib/simple_twitter_oauth/access_token.rb', line 3 def secret @secret end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/simple_twitter_oauth/access_token.rb', line 3 def token @token end |