Module: Iprofiler
- Defined in:
- lib/iprofiler.rb,
lib/iprofiler/api.rb,
lib/iprofiler/mash.rb,
lib/iprofiler/client.rb,
lib/iprofiler/version.rb,
lib/iprofiler/api/query_methods.rb
Defined Under Namespace
Modules: Api, VERSION Classes: Client, Mash
Class Attribute Summary collapse
-
.api_host ⇒ Object
Returns the value of attribute api_host.
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_secret ⇒ Object
Returns the value of attribute api_secret.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/iprofiler.rb (for instance).
Class Attribute Details
.api_host ⇒ Object
Returns the value of attribute api_host.
4 5 6 |
# File 'lib/iprofiler.rb', line 4 def api_host @api_host end |
.api_key ⇒ Object
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/iprofiler.rb', line 4 def api_key @api_key end |
.api_secret ⇒ Object
Returns the value of attribute api_secret.
4 5 6 |
# File 'lib/iprofiler.rb', line 4 def api_secret @api_secret end |
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/iprofiler.rb (for instance)
Iprofiler.configure do |config|
config.api_key = 'consumer_key'
config.api_secret = 'consumer_secret'
config.api_host = 'http://visitoriq2.iprofile.net'
end
elsewhere
client = Iprofiler::Client.new
17 18 19 20 |
# File 'lib/iprofiler.rb', line 17 def configure yield self true end |