Class: GmapPointPicker::Configuration
- Inherits:
-
Object
- Object
- GmapPointPicker::Configuration
- Defined in:
- lib/gmap_point_picker/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#lat_field_id ⇒ Object
Returns the value of attribute lat_field_id.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#lng_field_id ⇒ Object
Returns the value of attribute lng_field_id.
-
#load_js ⇒ Object
Returns the value of attribute load_js.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#map_div_id ⇒ Object
Returns the value of attribute map_div_id.
-
#search_field_id ⇒ Object
Returns the value of attribute search_field_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
:nodoc:.
Constructor Details
#initialize ⇒ Configuration
:nodoc:
12 13 14 15 16 17 18 19 20 |
# File 'lib/gmap_point_picker/configuration.rb', line 12 def initialize #:nodoc: @load_js = false @lat_field_id = "latitude" @lng_field_id = "longitude" @map_div_id = "map-canvas" @search_field_id = "gmap-search" @latitude = "47.523398" @longitude = "-98.489568" end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def api_key @api_key end |
#lat_field_id ⇒ Object
Returns the value of attribute lat_field_id.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def lat_field_id @lat_field_id end |
#latitude ⇒ Object
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def latitude @latitude end |
#lng_field_id ⇒ Object
Returns the value of attribute lng_field_id.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def lng_field_id @lng_field_id end |
#load_js ⇒ Object
Returns the value of attribute load_js.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def load_js @load_js end |
#longitude ⇒ Object
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def longitude @longitude end |
#map_div_id ⇒ Object
Returns the value of attribute map_div_id.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def map_div_id @map_div_id end |
#search_field_id ⇒ Object
Returns the value of attribute search_field_id.
3 4 5 |
# File 'lib/gmap_point_picker/configuration.rb', line 3 def search_field_id @search_field_id end |