Class: Chirpstream::Connect::User::Oauth

Inherits:
Object
  • Object
show all
Defined in:
lib/chirpstream/connect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token, access_secret, name = nil) ⇒ Oauth

Returns a new instance of Oauth.



7
8
9
10
11
# File 'lib/chirpstream/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_secretObject (readonly)

Returns the value of attribute access_secret.



6
7
8
# File 'lib/chirpstream/connect.rb', line 6

def access_secret
  @access_secret
end

#access_tokenObject (readonly)

Returns the value of attribute access_token.



6
7
8
# File 'lib/chirpstream/connect.rb', line 6

def access_token
  @access_token
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/chirpstream/connect.rb', line 6

def name
  @name
end

Instance Method Details

#oauth?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/chirpstream/connect.rb', line 13

def oauth?
  true
end