Class: Formotion::RowType::MapRowData
- Defined in:
- lib/formotion/row_type/map_row.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#pin ⇒ Object
Returns the value of attribute pin.
Instance Method Summary collapse
- #coordinate ⇒ Object
-
#initialize(options) ⇒ MapRowData
constructor
attr_accessor :title, :subtitle, :coordinate.
- #subtitle ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(options) ⇒ MapRowData
attr_accessor :title, :subtitle, :coordinate
10 11 12 13 14 15 |
# File 'lib/formotion/row_type/map_row.rb', line 10 def initialize() @title=[:title] @subtitle=[:subtitle] @coordinate=[:coord] @options=[:options] end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/formotion/row_type/map_row.rb', line 7 def @options end |
#pin ⇒ Object
Returns the value of attribute pin.
7 8 9 |
# File 'lib/formotion/row_type/map_row.rb', line 7 def pin @pin end |
Instance Method Details
#coordinate ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/formotion/row_type/map_row.rb', line 25 def coordinate if @coordinate.is_a? CLCircularRegion @coordinate.center else @coordinate end end |
#subtitle ⇒ Object
21 22 23 |
# File 'lib/formotion/row_type/map_row.rb', line 21 def subtitle @subtitle end |
#title ⇒ Object
17 18 19 |
# File 'lib/formotion/row_type/map_row.rb', line 17 def title @title end |