Class: Creatary::User

Inherits:
Object
  • Object
show all
Defined in:
lib/creatary/user.rb

Overview

Represents an end-user of Creatary (a subscriber)

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

Returns the value of attribute access_token.



4
5
6
# File 'lib/creatary/user.rb', line 4

def access_token
  @access_token
end

#token_secretObject

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