Module: F00px::Configuration

Extended by:
Configuration
Includes:
Options
Included in:
F00px, Client, Configuration
Defined in:
lib/f00px/configuration.rb,
lib/f00px/configuration/options.rb

Defined Under Namespace

Modules: Options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Options

#reset, #settings

Class Method Details

.included(base) ⇒ Object



20
21
# File 'lib/f00px/configuration.rb', line 20

def self.included(base)
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



23
24
25
26
# File 'lib/f00px/configuration.rb', line 23

def configure
  yield(self) if block_given?
  self
end

#credentialsObject



28
29
30
31
32
33
34
# File 'lib/f00px/configuration.rb', line 28

def credentials
  { :consumer_key => consumer_key,
    :consumer_secret => consumer_secret,
    :token => token,
    :token_secret => token_secret
  }
end