Method: GraphAPI#config
- Defined in:
- lib/graph_api.rb
#config(settings) ⇒ Object
Public: Method for configuring the setting settings for a nicer syntax.
Example:
GraphAPI.config app_secret: ‘124ca2a483f12723cafa7a5da33a3492’,
client_id: '234513432316919'
62 63 64 65 66 |
# File 'lib/graph_api.rb', line 62 def config(settings) settings.each do |setting, value| self.send("#{setting}=", value) end end |