Sha256: 1cdbcc0c3904ab45d20645f1ab9431a99c452cd1bf030e1df5af19e6dbc47fb8
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require_relative '../json_able' module SmartyStreets module USExtract # In addition to holding all of the input data for this lookup, this class also will contain the result # of the lookup after it comes back from the API. # # See "https://smartystreets.com/docs/cloud/us-extract-api#http-request-input-fields" class Lookup < JSONAble attr_accessor :text, :result, :aggressive, :addresses_per_line, :html, :addresses_have_line_breaks, :match, :custom_param_hash def initialize(text=nil, html=nil, aggressive=nil, addresses_have_line_breaks=nil, addresses_per_line=nil, match=nil, custom_param_hash=nil) @text = text @html = html @aggressive = aggressive @addresses_have_line_breaks = addresses_have_line_breaks @addresses_per_line = addresses_per_line @match = match @result = nil @custom_param_hash = {} end def add_custom_parameter(parameter, value) @custom_param_hash[parameter] = value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartystreets_ruby_sdk-5.20.6 | lib/smartystreets_ruby_sdk/us_extract/lookup.rb |