Class: SmartyStreets::USAutocomplete::Suggestion
- Inherits:
-
Object
- Object
- SmartyStreets::USAutocomplete::Suggestion
- Defined in:
- lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb
Overview
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#entry_id ⇒ Object
readonly
Returns the value of attribute entry_id.
-
#secondary ⇒ Object
readonly
Returns the value of attribute secondary.
-
#smarty_key ⇒ Object
readonly
Returns the value of attribute smarty_key.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#street_line ⇒ Object
readonly
Returns the value of attribute street_line.
-
#zipcode ⇒ Object
readonly
Returns the value of attribute zipcode.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Suggestion
constructor
A new instance of Suggestion.
Constructor Details
#initialize(obj) ⇒ Suggestion
Returns a new instance of Suggestion.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 8 def initialize(obj) @smarty_key = obj.fetch('smarty_key', nil) @entry_id = obj.fetch('entry_id', nil) @street_line = obj.fetch('street_line', nil) @secondary = obj.fetch('secondary', nil) @city = obj.fetch('city', nil) @state = obj.fetch('state', nil) @zipcode = obj.fetch('zipcode', nil) @entries = obj.fetch('entries', 0) @source = obj.fetch('source', nil) end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def city @city end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def entries @entries end |
#entry_id ⇒ Object (readonly)
Returns the value of attribute entry_id.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def entry_id @entry_id end |
#secondary ⇒ Object (readonly)
Returns the value of attribute secondary.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def secondary @secondary end |
#smarty_key ⇒ Object (readonly)
Returns the value of attribute smarty_key.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def smarty_key @smarty_key end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def source @source end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def state @state end |
#street_line ⇒ Object (readonly)
Returns the value of attribute street_line.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def street_line @street_line end |
#zipcode ⇒ Object (readonly)
Returns the value of attribute zipcode.
6 7 8 |
# File 'lib/smartystreets_ruby_sdk/us_autocomplete/suggestion.rb', line 6 def zipcode @zipcode end |