Class: TrestleData::Client
- Inherits:
-
Object
- Object
- TrestleData::Client
- Includes:
- API::ReversePhone, Configurable
- Defined in:
- lib/trestle-data/client.rb
Constant Summary
Constants included from API::ReversePhone
API::ReversePhone::API_VERSION
Constants included from API::Util
Instance Attribute Summary
Attributes included from Configurable
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from API::ReversePhone
#api_key_valid?, #reverse_lookup
Methods included from API::Util
#build_url, #call, #phone_number_valid?
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 |
# File 'lib/trestle-data/client.rb', line 10 def initialize(={}) TrestleData::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || TrestleData.instance_variable_get(:"@#{key}")) end end |