Module: Oscurrency
- Defined in:
- lib/oscurrency.rb,
lib/oscurrency/models/req.rb,
lib/oscurrency/models/base.rb,
lib/oscurrency/models/group.rb,
lib/oscurrency/models/person.rb,
lib/oscurrency/models/account.rb,
lib/oscurrency/models/category.rb,
lib/oscurrency/models/exchange.rb
Defined Under Namespace
Modules: Models
Class Method Summary collapse
- .consumer(consumer_token, consumer_secret, site = 'http://demo.opensourcecurrency.org') ⇒ Object
- .register(options = {}) ⇒ Object
Class Method Details
.consumer(consumer_token, consumer_secret, site = 'http://demo.opensourcecurrency.org') ⇒ Object
10 11 12 |
# File 'lib/oscurrency.rb', line 10 def self.consumer(consumer_token,consumer_secret,site = 'http://demo.opensourcecurrency.org') return OAuth::Consumer.new(consumer_token,consumer_secret,{:site => site}) end |
.register(options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/oscurrency.rb', line 14 def self.register( = {}) [:site] = [:site] || 'http://demo.opensourcecurrency.org' OAuthActiveResource.register(self.ancestors.first, self.ancestors.first.const_get('Models'), ) end |