Class: Userstream::Connect::User::Oauth
- Inherits:
-
Object
- Object
- Userstream::Connect::User::Oauth
- Defined in:
- lib/userstream/connect.rb
Instance Attribute Summary collapse
-
#access_secret ⇒ Object
readonly
Returns the value of attribute access_secret.
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(access_token, access_secret, name = nil) ⇒ Oauth
constructor
A new instance of Oauth.
- #oauth? ⇒ Boolean
Constructor Details
#initialize(access_token, access_secret, name = nil) ⇒ Oauth
Returns a new instance of Oauth.
7 8 9 10 11 |
# File 'lib/userstream/connect.rb', line 7 def initialize(access_token, access_secret, name = nil) @name = name @access_token = access_token @access_secret = access_secret end |
Instance Attribute Details
#access_secret ⇒ Object (readonly)
Returns the value of attribute access_secret.
6 7 8 |
# File 'lib/userstream/connect.rb', line 6 def access_secret @access_secret end |
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/userstream/connect.rb', line 6 def access_token @access_token end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/userstream/connect.rb', line 6 def name @name end |
Instance Method Details
#oauth? ⇒ Boolean
13 14 15 |
# File 'lib/userstream/connect.rb', line 13 def oauth? true end |