class Formotion::RowType::MapRowData

Attributes

options[RW]
pin[RW]

Public Class Methods

new(options) click to toggle source

attr_accessor :title, :subtitle, :coordinate

# 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

Public Instance Methods

coordinate() click to toggle source
# File lib/formotion/row_type/map_row.rb, line 25
def coordinate
  if @coordinate.is_a? CLCircularRegion
    @coordinate.center
  else
    @coordinate
  end
end
subtitle() click to toggle source
# File lib/formotion/row_type/map_row.rb, line 21
def subtitle
  @subtitle
end
title() click to toggle source
# File lib/formotion/row_type/map_row.rb, line 17
def title
  @title
end