Class: Inputs::Geolocalization::Cell
- Inherits:
-
Cell
- Object
- Cell
- Inputs::Geolocalization::Cell
- Defined in:
- app/cells/lato_core/inputs/geolocalization/cell.rb
Constant Summary collapse
- @@requested_args =
[]
- @@default_args =
{ label: '', help: '', placeholder: '', name_lat: 'lat', name_lng: 'lng', name_address: 'address', value_lat: nil, value_lng: nil, value_address: nil, default_lat: 41.90278349999999, default_lng: 12.496365500000024, default_zoom: 5, class: 'md-12', default_type: 'roadmap' }
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Cell
constructor
A new instance of Cell.
- #show ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Cell
Returns a new instance of Cell.
24 25 26 27 28 29 30 31 32 |
# File 'app/cells/lato_core/inputs/geolocalization/cell.rb', line 24 def initialize(args = {}) @args = validate_args( args: args, requested_args: @@requested_args, default_args: @@default_args ) set_conditions end |
Instance Method Details
#show ⇒ Object
34 35 36 |
# File 'app/cells/lato_core/inputs/geolocalization/cell.rb', line 34 def show render 'show.html' end |