rubill 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4993af244ded1989c9382b81dbe5bd0d09276cec
4
- data.tar.gz: 44571832f6058a9025ac73962cbd2eb415896b40
3
+ metadata.gz: dfa35c17dedae428277fbad66942a6e2e4c1ff45
4
+ data.tar.gz: e37d4ddd90ff38b584d20a5fc4caee707aecc08f
5
5
  SHA512:
6
- metadata.gz: 23038a71ba989fdd8e65690d603bed35b9468cc43c69941441936560dd2c0ff26d8a629f2926a83d0195b26984052f104435efaf1071d5006b9f698b9cecd8b0
7
- data.tar.gz: eb45738b6e93ec63191cb30d7c6a8e66a8377cee2d17767f65d31150b2cd9726c3704a582aab49812b6bb2338fca25bdff0c666c23234e654decd24b7e679c04
6
+ metadata.gz: 89ec10063490ad9106136d2271d8bd6c33022251e89936c5301f085433f473a393761f914fa6f781407f2dac3b2cc567c1f868e59126f47270dbb3411e8ae939
7
+ data.tar.gz: 27a82b53109929435f5058eb97d7182aae018795e6d37de4bf109c49e53b430f7deda1d844f7f1de037c1b30e81a3a9ee30c1d33439810e0bea129607745a17c
@@ -56,3 +56,5 @@ require "rubill/received_payment"
56
56
  require "rubill/vendor"
57
57
  require "rubill/customer"
58
58
  require "rubill/customer_contact"
59
+ require "rubill/attachment"
60
+
@@ -0,0 +1,17 @@
1
+ require 'base64'
2
+
3
+ module Rubill
4
+ class Attachment < Base
5
+ def self.send_attachment(object_id, file_name, content)
6
+ Query.upload_attachment({
7
+ id: object_id,
8
+ fileName: file_name,
9
+ content: content
10
+ })
11
+ end
12
+
13
+ def self.remote_class_name
14
+ "Attachment"
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Taber
@@ -73,6 +73,7 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - lib/rubill.rb
76
+ - lib/rubill/attachment.rb
76
77
  - lib/rubill/base.rb
77
78
  - lib/rubill/bill.rb
78
79
  - lib/rubill/bill_payment.rb