vidsy-data-api 0.13.0 → 0.14.0

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: 4af539266505efd5b63254c071447d0af39d2b54
4
- data.tar.gz: f2e237c0a0d95a93beda5bc0714959d8993ec2f9
3
+ metadata.gz: cb853bccd33973f751eef9dbe86abe5d50eb5010
4
+ data.tar.gz: d2170735196cccd13503dca375273cc875b53c8f
5
5
  SHA512:
6
- metadata.gz: f2dc4030e2f43ca027318a84cc5b8829614e4d5e4a20cafe383d6a8d02bc7f7a641c62e4138cc25c8ad21ae0513f063c3a70746fb0aa4ec65b11ebba43312685
7
- data.tar.gz: 0bdbe3304d65fae19dc0a305e9cda554128c1386628f516f74261976793afaad6399f140b0cbe7824561c655fc12037092357450a02b648471a594a9eae53174
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
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.13.0".freeze
4
+ VERSION = "0.14.0".freeze
5
5
  end
6
6
  end
7
7
  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.13.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