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

Class Method Summary collapse

Class Attribute Details

.api_hostObject

Returns the value of attribute api_host.



4
5
6
# File 'lib/iprofiler.rb', line 4

def api_host
  @api_host
end

.api_keyObject

Returns the value of attribute api_key.



4
5
6
# File 'lib/iprofiler.rb', line 4

def api_key
  @api_key
end

.api_secretObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Iprofiler)

    the object that the method was called on



17
18
19
20
# File 'lib/iprofiler.rb', line 17

def configure
  yield self
  true
end