Class: Satis::Map::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::Map::Component
- Defined in:
- app/components/satis/map/component.rb
Instance Attribute Summary collapse
-
#geo_json_url ⇒ Object
readonly
Returns the value of attribute geo_json_url.
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
-
#zoom_level ⇒ Object
readonly
Returns the value of attribute zoom_level.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(latitude: 52.09083, longitude: 5.12222, zoom_level: 7, geo_json_url: nil) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(latitude: 52.09083, longitude: 5.12222, zoom_level: 7, geo_json_url: nil) ⇒ Component
Returns a new instance of Component.
8 9 10 11 12 13 14 |
# File 'app/components/satis/map/component.rb', line 8 def initialize(latitude: 52.09083, longitude: 5.12222, zoom_level: 7, geo_json_url: nil) super @latitude = latitude @longitude = longitude @zoom_level = zoom_level @geo_json_url = geo_json_url end |
Instance Attribute Details
#geo_json_url ⇒ Object (readonly)
Returns the value of attribute geo_json_url.
6 7 8 |
# File 'app/components/satis/map/component.rb', line 6 def geo_json_url @geo_json_url end |
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
6 7 8 |
# File 'app/components/satis/map/component.rb', line 6 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
6 7 8 |
# File 'app/components/satis/map/component.rb', line 6 def longitude @longitude end |
#zoom_level ⇒ Object (readonly)
Returns the value of attribute zoom_level.
6 7 8 |
# File 'app/components/satis/map/component.rb', line 6 def zoom_level @zoom_level end |