Module: AppRail::Steps::Maps::ConfirmLocation

Included in:
Displayable
Defined in:
lib/app_rail/steps/maps/confirm_location.rb

Instance Method Summary collapse

Instance Method Details

#ar_maps_confirm_location(latitude:, longitude:, text:, detail_text: nil) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/app_rail/steps/maps/confirm_location.rb', line 7

def ar_maps_confirm_location(latitude:, longitude:, text:, detail_text: nil)
  {
    text: text,
    latitude: latitude.to_f,
    longitude: longitude.to_f,
    detailText: detail_text
  }.compact
end