Class: Dust::Map
- Inherits:
-
Object
- Object
- Dust::Map
- Defined in:
- app/models/dust/map.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#content ⇒ Object
Returns the value of attribute content.
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Map
constructor
A new instance of Map.
Constructor Details
#initialize(options = {}) ⇒ Map
Returns a new instance of Map.
6 7 8 9 10 11 |
# File 'app/models/dust/map.rb', line 6 def initialize(={}) @address = [:address] ||= "Lalana Ramboatiana, Antananarivo, Madagascar" @width = [:width] ||= 400 @height = [:height] ||= 400 @content = [:content]||= "Madagascar Royal Palace" end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'app/models/dust/map.rb', line 4 def address @address end |
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'app/models/dust/map.rb', line 4 def content @content end |
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'app/models/dust/map.rb', line 4 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'app/models/dust/map.rb', line 4 def width @width end |