Class: Mapbox::Overlay::Base
- Inherits:
-
Object
- Object
- Mapbox::Overlay::Base
- Defined in:
- lib/mapbox/overlay/base.rb
Overview
Overlay base class
Class Method Summary collapse
Instance Method Summary collapse
- #arguments_check ⇒ Object
- #generate_overlay ⇒ Object
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(opts = {}) ⇒ Base
10 11 12 13 14 15 |
# File 'lib/mapbox/overlay/base.rb', line 10 def initialize(opts = {}) opts.each do |key, value| instance_variable_set("@#{key}", value) end arguments_check end |
Class Method Details
.add(opts = {}) ⇒ Object
5 6 7 8 |
# File 'lib/mapbox/overlay/base.rb', line 5 def self.add(opts = {}) a = new(opts) a. end |
Instance Method Details
#arguments_check ⇒ Object
17 |
# File 'lib/mapbox/overlay/base.rb', line 17 def arguments_check; end |
#generate_overlay ⇒ Object
19 20 21 |
# File 'lib/mapbox/overlay/base.rb', line 19 def fail Exception 'You cannot call generate_overlay from Base class' end |