Class: RavenTools::Address
- Defined in:
- lib/rb_raventools/address.rb
Instance Attribute Summary
Attributes inherited from Client
Class Method Summary collapse
Methods inherited from Client
#domain_info, #domains, #engines, #initialize, #keyword_info, #keywords, #keywords_with_tags, #profile_info, #tag_info, #tags
Constructor Details
This class inherits a constructor from RavenTools::Client
Class Method Details
.build(method, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rb_raventools/address.rb', line 4 def self.build(method, = {}) url = "#{RavenTools::API_BASE_URL}key=#{@@api_key}&format=#{@@format}&method=#{method}" unless [:domain] == nil url << "&domain=#{[:domain]}" end unless [:start_date] == nil url << "&start_date=#{[:start_date]}" end unless [:end_date] == nil url << "&end_date=#{[:end_date]}" end unless [:engine] == nil url << "&engine=#{[:engine]}" end return url end |