Class: Droonga::MessagePackPacker::GeoPointFormatter
- Inherits:
-
Object
- Object
- Droonga::MessagePackPacker::GeoPointFormatter
- Defined in:
- lib/droonga/message-pack-packer/geo-point-formatter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(geo_point) ⇒ GeoPointFormatter
constructor
A new instance of GeoPointFormatter.
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
#format ⇒ Object
30 31 32 |
# File 'lib/droonga/message-pack-packer/geo-point-formatter.rb', line 30 def format @geo_point.to_s end |