Module: Openfooty
- Defined in:
- lib/openfooty.rb,
lib/openfooty/client.rb
Defined Under Namespace
Classes: Client
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
create config/initializers/openfooty.rb.
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
33 34 35 |
# File 'lib/openfooty.rb', line 33 def api_key @api_key end |
Class Method Details
.configure {|_self| ... } ⇒ Object
create config/initializers/openfooty.rb
Openfooty.configure do |config|
config.api_key = 'api_key'
end client = Openfooty::Client.new
or
Openfooty.api_key = ‘api_key’
or
Openfooty::Client.new(:api_key => ‘api_key’, :api_type => ‘api_type’)
27 28 29 30 |
# File 'lib/openfooty.rb', line 27 def self.configure yield self true end |