Class: Unit::AtmLocation::ListByAddressParams
- Inherits:
-
Object
- Object
- Unit::AtmLocation::ListByAddressParams
- Defined in:
- lib/unit/models/atm_location/list_by_address_params.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#search_radius ⇒ Object
readonly
Returns the value of attribute search_radius.
Instance Method Summary collapse
-
#initialize(address, search_radius = nil) ⇒ ListByAddressParams
constructor
A new instance of ListByAddressParams.
- #to_hash ⇒ Object
Constructor Details
#initialize(address, search_radius = nil) ⇒ ListByAddressParams
Returns a new instance of ListByAddressParams.
12 13 14 15 |
# File 'lib/unit/models/atm_location/list_by_address_params.rb', line 12 def initialize(address, search_radius = nil) @address = address @search_radius = search_radius end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
8 9 10 |
# File 'lib/unit/models/atm_location/list_by_address_params.rb', line 8 def address @address end |
#search_radius ⇒ Object (readonly)
Returns the value of attribute search_radius.
8 9 10 |
# File 'lib/unit/models/atm_location/list_by_address_params.rb', line 8 def search_radius @search_radius end |
Instance Method Details
#to_hash ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/unit/models/atm_location/list_by_address_params.rb', line 17 def to_hash params = { "filter[address]": address.represent.to_json, "filter[searchRadius]": search_radius } params.compact end |