Class: ExcelBuilder::Connector

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

Class Method Summary collapse

Class Method Details

.generate_xlsx(filename, &block) ⇒ Object



25
26
27
28
# File 'lib/excel_builder.rb', line 25

def self.generate_xlsx(filename, &block)
  cr = CommandRecorder.record &block
  RestClient.post self.site + '/' + filename, :invocation_json => cr.invocation_json
end

.passwordObject



19
20
21
# File 'lib/excel_builder.rb', line 19

def self.password
  @@password
end

.password=(password) ⇒ Object



22
23
24
# File 'lib/excel_builder.rb', line 22

def self.password=(password)
  @@password=password
end

.siteObject



7
8
9
# File 'lib/excel_builder.rb', line 7

def self.site
  @@site
end

.site=(site) ⇒ Object



10
11
12
# File 'lib/excel_builder.rb', line 10

def self.site=(site)
  @@site=site
end

.userObject



13
14
15
# File 'lib/excel_builder.rb', line 13

def self.user
  @@user
end

.user=(user) ⇒ Object



16
17
18
# File 'lib/excel_builder.rb', line 16

def self.user=(user)
  @@user=user
end