biller_bot_resource 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,4 +21,8 @@ class BillerBotResource::Invoice < BillerBotResource::Resource
21
21
  @attributes[:locations_attributes] = @attributes.delete(:locations)
22
22
  super
23
23
  end
24
+
25
+ def total_charge
26
+ line_items.map(&:total_charge).inject(:+)
27
+ end
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module BillerBotResource
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: biller_bot_resource
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brad Seefeld
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-04-30 00:00:00 Z
13
+ date: 2013-05-04 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Provides a set of Ruby classes for interacting with the BillerBot API