Class: PistePal::DataServices::GpxDoc

Inherits:
Object
  • Object
show all
Defined in:
lib/piste_pal/data_services/gpx_doc.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#docObject

include Singleton



6
7
8
# File 'lib/piste_pal/data_services/gpx_doc.rb', line 6

def doc
  @doc
end

Class Method Details

.instanceObject



11
12
13
# File 'lib/piste_pal/data_services/gpx_doc.rb', line 11

def self.instance
  @instance || nil
end

.set_instance(file_content) ⇒ Object



8
9
10
# File 'lib/piste_pal/data_services/gpx_doc.rb', line 8

def self.set_instance(file_content)
  @instance = new(file_content)
end