Class: Token

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document
Defined in:
app/models/token.rb

Instance Method Summary collapse

Instance Method Details

#update_attributes_from_fb(access_token, expires_from_epoch = nil) ⇒ Object



12
13
14
15
16
# File 'app/models/token.rb', line 12

def update_attributes_from_fb(access_token,expires_from_epoch = nil)
	self.access_token = access_token
	self.expires = Time.at(expires_from_epoch.to_i).to_datetime if expires_from_epoch
	self
end