report 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.md +14 -14
- data/lib/report/pdf.rb +1 -1
- data/lib/report/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -7,20 +7,6 @@ Extracted from Brighter Planet's corporate reporting system.
|
|
7
7
|
## Usage
|
8
8
|
|
9
9
|
class FleetReport < Report
|
10
|
-
attr_reader :batchfile
|
11
|
-
|
12
|
-
def initialize(batchfile)
|
13
|
-
@batchfile = batchfile
|
14
|
-
end
|
15
|
-
|
16
|
-
def description
|
17
|
-
'Fleet sustainability report'
|
18
|
-
end
|
19
|
-
|
20
|
-
def vehicles(type)
|
21
|
-
@batchfile.vehicles.where(:type => type)
|
22
|
-
end
|
23
|
-
|
24
10
|
table 'Cars' do
|
25
11
|
head do
|
26
12
|
row 'Report type', :description
|
@@ -75,6 +61,20 @@ Extracted from Brighter Planet's corporate reporting system.
|
|
75
61
|
xlsx.page_setup.header = 0
|
76
62
|
xlsx.page_setup.footer = 0
|
77
63
|
end
|
64
|
+
|
65
|
+
attr_reader :batchfile
|
66
|
+
|
67
|
+
def initialize(batchfile)
|
68
|
+
@batchfile = batchfile
|
69
|
+
end
|
70
|
+
|
71
|
+
def description
|
72
|
+
'Fleet sustainability report'
|
73
|
+
end
|
74
|
+
|
75
|
+
def vehicles(type)
|
76
|
+
@batchfile.vehicles.where(:type => type)
|
77
|
+
end
|
78
78
|
end
|
79
79
|
|
80
80
|
b = Batchfile.first
|
data/lib/report/pdf.rb
CHANGED
data/lib/report/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|