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 +4 -4
- data/lib/rubill.rb +2 -0
- data/lib/rubill/attachment.rb +17 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa35c17dedae428277fbad66942a6e2e4c1ff45
|
4
|
+
data.tar.gz: e37d4ddd90ff38b584d20a5fc4caee707aecc08f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89ec10063490ad9106136d2271d8bd6c33022251e89936c5301f085433f473a393761f914fa6f781407f2dac3b2cc567c1f868e59126f47270dbb3411e8ae939
|
7
|
+
data.tar.gz: 27a82b53109929435f5058eb97d7182aae018795e6d37de4bf109c49e53b430f7deda1d844f7f1de037c1b30e81a3a9ee30c1d33439810e0bea129607745a17c
|
data/lib/rubill.rb
CHANGED
@@ -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.
|
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
|