vidsy-data-api 0.13.0 → 0.14.0
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.
- checksums.yaml +4 -4
- data/lib/vidsy/data/api/submission.rb +32 -0
- data/lib/vidsy/data/api/version.rb +1 -1
- 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: cb853bccd33973f751eef9dbe86abe5d50eb5010
|
4
|
+
data.tar.gz: d2170735196cccd13503dca375273cc875b53c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a728c3c4cd221c2be5850525b67bbf466352ee6a75e43e7e13d163dad6aae5afab746d9184b780d872cb64839ddf33fa55671712b2528838658b9122f6aa4fe
|
7
|
+
data.tar.gz: 39e73aabc1954f3b5c8d777045094b1212d69083e9d29f4f3be3a56733a0311d29b416eba293443ea2a243b90ccf036013ef8f187f96279d03bf914ace698553
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require "vidsy/data/api/client"
|
2
|
+
require "vidsy/data/api/configuration"
|
3
|
+
|
4
|
+
module Vidsy
|
5
|
+
module Data
|
6
|
+
module API
|
7
|
+
class Submission
|
8
|
+
def self.create(options)
|
9
|
+
new.create options
|
10
|
+
end
|
11
|
+
|
12
|
+
def create(options)
|
13
|
+
client.post(routes.submission, options).first
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
def client
|
19
|
+
Vidsy::Data::API::Client.new
|
20
|
+
end
|
21
|
+
|
22
|
+
def configuration
|
23
|
+
Vidsy::Data::API::Configuration
|
24
|
+
end
|
25
|
+
|
26
|
+
def routes
|
27
|
+
configuration.routes
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidsy-data-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Revett
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/vidsy/data/api/error/unexpected.rb
|
126
126
|
- lib/vidsy/data/api/request.rb
|
127
127
|
- lib/vidsy/data/api/response.rb
|
128
|
+
- lib/vidsy/data/api/submission.rb
|
128
129
|
- lib/vidsy/data/api/user.rb
|
129
130
|
- lib/vidsy/data/api/version.rb
|
130
131
|
- lib/vidsy/data/api/video.rb
|