Class: Droonga::MessagePackPacker::GeoPointFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/droonga/message-pack-packer/geo-point-formatter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(geo_point) ⇒ GeoPointFormatter

Returns a new instance of GeoPointFormatter.



26
27
28
# File 'lib/droonga/message-pack-packer/geo-point-formatter.rb', line 26

def initialize(geo_point)
  @geo_point = geo_point
end

Class Method Details

.format(object) ⇒ Object



20
21
22
23
# File 'lib/droonga/message-pack-packer/geo-point-formatter.rb', line 20

def format(object)
  formatter = new(object)
  formatter.format
end

Instance Method Details

#formatObject



30
31
32
# File 'lib/droonga/message-pack-packer/geo-point-formatter.rb', line 30

def format
  @geo_point.to_s
end