Module: GoogleMapsEmbed
- Defined in:
- lib/google_maps_embed.rb,
lib/google_maps_embed/railtie.rb,
lib/google_maps_embed/version.rb,
lib/google_maps_embed/view_helpers.rb,
lib/google_maps_embed/configuration.rb,
lib/google_maps_embed/iframe_generator.rb,
lib/generators/google_maps_embed/install/install_generator.rb
Defined Under Namespace
Modules: Generators, IframeGenerator, ViewHelpers Classes: Configuration, Error, Railtie
Constant Summary collapse
- VERSION =
"0.1.5"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/google_maps_embed.rb', line 15 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
18 19 20 21 |
# File 'lib/google_maps_embed.rb', line 18 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
.map(type: :static, **options) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/google_maps_embed.rb', line 23 def self.map(type: :static, **) case type when :static StaticMap.url() when :place PlaceMap.create() else raise ArgumentError, "Unknown map type: #{type}" end end |