Module: Openfooty

Defined in:
lib/openfooty.rb,
lib/openfooty/client.rb

Defined Under Namespace

Classes: Client

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

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’)

Yields:

  • (_self)

Yield Parameters:

  • _self (Openfooty)

    the object that the method was called on



27
28
29
30
# File 'lib/openfooty.rb', line 27

def self.configure
  yield self
  true
end