Class: ExcelBuilder::Connector
- Inherits:
-
Object
- Object
- ExcelBuilder::Connector
- Defined in:
- lib/excel_builder.rb
Class Method Summary collapse
- .generate_xlsx(filename, &block) ⇒ Object
- .password ⇒ Object
- .password=(password) ⇒ Object
- .site ⇒ Object
- .site=(site) ⇒ Object
- .user ⇒ Object
- .user=(user) ⇒ Object
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 |
.password ⇒ Object
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 |
.site ⇒ Object
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 |
.user ⇒ Object
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 |