Class: Creatary::User
- Inherits:
-
Object
- Object
- Creatary::User
- Defined in:
- lib/creatary/user.rb
Overview
Represents an end-user of Creatary (a subscriber)
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#token_secret ⇒ Object
Returns the value of attribute token_secret.
Instance Method Summary collapse
- #==(another_user) ⇒ Object
-
#initialize(access_token, token_secret) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(access_token, token_secret) ⇒ User
Returns a new instance of User.
7 8 9 10 |
# File 'lib/creatary/user.rb', line 7 def initialize(access_token, token_secret) @access_token = access_token @token_secret = token_secret end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
4 5 6 |
# File 'lib/creatary/user.rb', line 4 def access_token @access_token end |
#token_secret ⇒ Object
Returns the value of attribute token_secret.
5 6 7 |
# File 'lib/creatary/user.rb', line 5 def token_secret @token_secret end |
Instance Method Details
#==(another_user) ⇒ Object
12 13 14 |
# File 'lib/creatary/user.rb', line 12 def ==(another_user) self.access_token == another_user.access_token and self.token_secret == another_user.token_secret end |