Class: Lbrt::Space::Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/lbrt/space/exporter.rb

Constant Summary collapse

DEFAULT_CONCURRENCY =
32

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, options = {}) ⇒ Exporter

of class methods



10
11
12
13
# File 'lib/lbrt/space/exporter.rb', line 10

def initialize(client, options = {})
  @client = client
  @options = options
end

Class Method Details

.export(client, options = {}) ⇒ Object



5
6
7
# File 'lib/lbrt/space/exporter.rb', line 5

def export(client, options = {})
  self.new(client, options).export
end

Instance Method Details

#exportObject



15
16
17
18
# File 'lib/lbrt/space/exporter.rb', line 15

def export
  spaces = @client.spaces.get
  normalize_spaces(spaces)
end