Class: SmartyStreets::USEnrichment::Secondary::Lookup

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(smarty_key, etag = nil, custom_param_hash = nil) ⇒ Lookup

Returns a new instance of Lookup.



7
8
9
10
11
12
13
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 7

def initialize(smarty_key, etag=nil, custom_param_hash=nil)
  @smarty_key = smarty_key
  @data_set = "secondary"
  @data_sub_set = nil
  @etag = etag
  @custom_param_hash = {}
end

Instance Attribute Details

#custom_param_hashObject (readonly)

Returns the value of attribute custom_param_hash.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 5

def custom_param_hash
  @custom_param_hash
end

#data_setObject (readonly)

Returns the value of attribute data_set.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 5

def data_set
  @data_set
end

#data_sub_setObject (readonly)

Returns the value of attribute data_sub_set.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 5

def data_sub_set
  @data_sub_set
end

#etagObject (readonly)

Returns the value of attribute etag.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 5

def etag
  @etag
end

#smarty_keyObject (readonly)

Returns the value of attribute smarty_key.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 5

def smarty_key
  @smarty_key
end

Instance Method Details

#add_custom_parameter(parameter, value) ⇒ Object



15
16
17
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/lookup.rb', line 15

def add_custom_parameter(parameter, value)
  @custom_param_hash[parameter] = value
end