Class: Untappd::Base
- Inherits:
-
Object
show all
- Includes:
- HTTParty
- Defined in:
- lib/untappd/base.rb
Class Method Summary
collapse
Class Method Details
.auth_options ⇒ Object
20
21
22
23
24
25
|
# File 'lib/untappd/base.rb', line 20
def self.auth_options
{
:client_id => Untappd.config.client_id,
:client_secret => Untappd.config.client_secret
}
end
|
.response_to_mash(response) ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/untappd/base.rb', line 12
def self.response_to_mash(response)
if response.code == 200
Hashie::Mash.new(response).response
else
Hashie::Mash.new {}
end
end
|