Class: Lbrt::Service::Exporter

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

of class methods



8
9
10
11
# File 'lib/lbrt/service/exporter.rb', line 8

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

Class Method Details

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



3
4
5
# File 'lib/lbrt/service/exporter.rb', line 3

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

Instance Method Details

#exportObject



13
14
15
16
# File 'lib/lbrt/service/exporter.rb', line 13

def export
  services = @client.services.get
  normalize(services)
end