Module: Groupon
- Defined in:
- lib/groupon.rb,
lib/groupon/client.rb
Defined Under Namespace
Classes: Client, GrouponError
Constant Summary collapse
- VERSION =
"0.0.1".freeze
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/gowalla.rb (for instance).
- .deals(options = {}) ⇒ Object
- .divisions ⇒ Object
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
35 36 37 |
# File 'lib/groupon.rb', line 35 def api_key @api_key end |
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/gowalla.rb (for instance)
Groupon.configure do |config|
config.api_key = 'api_key'
end
elsewhere
client = Groupon::Client.new
29 30 31 32 |
# File 'lib/groupon.rb', line 29 def self.configure yield self true end |