module MelissaData::Config
Attributes
google_maps_api_key[RW]
@!attribute web_smart_id
@return [String] web smart id to be used
web_smart_id[RW]
@!attribute web_smart_id
@return [String] web smart id to be used
Public Class Methods
included(base)
click to toggle source
# File lib/melissa_data/config.rb, line 3 def self.included(base) base.extend(self) end
Public Instance Methods
configure() { |self| ... }
click to toggle source
Configures web_smart_id
and property_api_url
Usage example: MelissaData.configure do |config| config.web_smart_id = ENV['MELISSA_DATA_WEB_SMART_ID'] config.google_maps_api_key = ENV['GOOGLE_MAPS_API_KEY'] end Alternate way: MelissaData.web_smart_id = ENV['MELISSA_DATA_WEB_SMART_ID'] MelissaData.google_maps_api_key = ENV['GOOGLE_MAPS_API_KEY']
@param <api_key> [String] web smart id to use
# File lib/melissa_data/config.rb, line 23 def configure yield self if block_given? end