Class: OauthToken

Inherits:
BaseNew
  • Object
show all
Defined in:
app/models/oauth_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseNew

Proxy, install_data, install_data_hooks, #with_timestamps?

Instance Attribute Details

#secretObject

Returns the value of attribute secret.



4
5
6
# File 'app/models/oauth_token.rb', line 4

def secret
  @secret
end

#tokenObject

Returns the value of attribute token.



3
4
5
# File 'app/models/oauth_token.rb', line 3

def token
  @token
end

Instance Method Details

#generate_keysObject



6
7
8
9
# File 'app/models/oauth_token.rb', line 6

def generate_keys
  self.token = OAuth::Helper.generate_key(40)[0,40]
  self.secret = OAuth::Helper.generate_key(40)[0,40]
end