Class: Unit::AtmLocation::ListByCoordinatesParams
- Inherits:
-
Object
- Object
- Unit::AtmLocation::ListByCoordinatesParams
- Defined in:
- lib/unit/models/atm_location/list_by_coordinates_params.rb
Instance Attribute Summary collapse
-
#coordinates ⇒ Object
readonly
Returns the value of attribute coordinates.
-
#search_radius ⇒ Object
readonly
Returns the value of attribute search_radius.
Instance Method Summary collapse
-
#initialize(coordinates, search_radius = nil) ⇒ ListByCoordinatesParams
constructor
A new instance of ListByCoordinatesParams.
- #to_hash ⇒ Object
Constructor Details
#initialize(coordinates, search_radius = nil) ⇒ ListByCoordinatesParams
Returns a new instance of ListByCoordinatesParams.
12 13 14 15 |
# File 'lib/unit/models/atm_location/list_by_coordinates_params.rb', line 12 def initialize(coordinates, search_radius = nil) @coordinates = coordinates @search_radius = search_radius end |
Instance Attribute Details
#coordinates ⇒ Object (readonly)
Returns the value of attribute coordinates.
8 9 10 |
# File 'lib/unit/models/atm_location/list_by_coordinates_params.rb', line 8 def coordinates @coordinates end |
#search_radius ⇒ Object (readonly)
Returns the value of attribute search_radius.
8 9 10 |
# File 'lib/unit/models/atm_location/list_by_coordinates_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_coordinates_params.rb', line 17 def to_hash params = { "filter[coordinates]": coordinates.represent, "filter[searchRadius]": search_radius } params.compact end |