Class: SmartyStreets::USEnrichment::Secondary::Count::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, etag = nil) ⇒ Response

Returns a new instance of Response.



8
9
10
11
12
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/count/response.rb', line 8

def initialize(obj, etag=nil)
  @smarty_key = obj['smarty_key']
  @count = obj['count']
  @etag = etag
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



6
7
8
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/count/response.rb', line 6

def count
  @count
end

#etagObject (readonly)

Returns the value of attribute etag.



6
7
8
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/count/response.rb', line 6

def etag
  @etag
end

#smarty_keyObject (readonly)

Returns the value of attribute smarty_key.



6
7
8
# File 'lib/smartystreets_ruby_sdk/us_enrichment/secondary/count/response.rb', line 6

def smarty_key
  @smarty_key
end