Class: Superfeedr::Point

Inherits:
Node
  • Object
show all
Defined in:
lib/superfeedr/superfeedr.rb

Instance Method Summary collapse

Methods inherited from Node

#initialize

Constructor Details

This class inherits a constructor from Superfeedr::Node

Instance Method Details

#latitudeObject



195
196
197
# File 'lib/superfeedr/superfeedr.rb', line 195

def latitude
  point.last
end

#longtitudeObject



191
192
193
# File 'lib/superfeedr/superfeedr.rb', line 191

def longtitude
  point.first
end

#pointObject



199
200
201
# File 'lib/superfeedr/superfeedr.rb', line 199

def point
  @point ||= (raw || []) && raw.split(",")
end

#rawObject



187
188
189
# File 'lib/superfeedr/superfeedr.rb', line 187

def raw
  content_from(".")
end