Class: Formotion::RowType::MapRowData

Inherits:
Object
  • Object
show all
Defined in:
lib/formotion/row_type/map_row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @title=options[:title]
  @subtitle=options[:subtitle]
  @coordinate=options[:coord]
  @options=options[:options]
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/formotion/row_type/map_row.rb', line 7

def options
  @options
end

#pinObject

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

#coordinateObject



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

#subtitleObject



21
22
23
# File 'lib/formotion/row_type/map_row.rb', line 21

def subtitle
  @subtitle
end

#titleObject



17
18
19
# File 'lib/formotion/row_type/map_row.rb', line 17

def title
  @title
end