Class: ZoomInfo::Base
- Inherits:
-
Object
- Object
- ZoomInfo::Base
- Includes:
- HTTParty, KeyGeneration
- Defined in:
- lib/zoominfo-ruby/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(partner_name = nil, api_key = nil) ⇒ Base
constructor
A new instance of Base.
- #prepare_request(query) ⇒ Object
Methods included from KeyGeneration
Constructor Details
#initialize(partner_name = nil, api_key = nil) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/zoominfo-ruby/client.rb', line 9 def initialize(partner_name = nil, api_key = nil) @api_key = api_key self.class.default_params({pc: partner_name, outputType: 'xml'}) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/zoominfo-ruby/client.rb', line 7 def api_key @api_key end |
Instance Method Details
#prepare_request(query) ⇒ Object
14 15 16 17 |
# File 'lib/zoominfo-ruby/client.rb', line 14 def prepare_request(query) key = generate_key(query.values, @api_key) query.merge!(key: key) end |