bespokify 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bespokify/client.rb +2 -0
- data/lib/bespokify/client/export_profile.rb +25 -0
- data/lib/bespokify/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e295aeae030d1c0fd7a17241922c8e4ab77d7f5348de41a2278ac7c9b0a5ea3
|
4
|
+
data.tar.gz: 55ac1004a50b681aad0b9892777314b782500b3771ba6a58fa981e5de4403d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741d06b977ee9492e8a8d37c3102c66a4f7b0474733d17d493ecf329dac68fac28d655e5082ec027c05bca36c3882deb54105dcdf0d7e19e5fe133434db02a91
|
7
|
+
data.tar.gz: ff90104f5675abb8e2ee3ad44ef3d98c33a06c9b9e837c5c1e29caa8f87595fcb01d4f5725d0a97488f95a272436d98da4de0c7b3a42f8df98376ea770eab474
|
data/Gemfile.lock
CHANGED
data/lib/bespokify/client.rb
CHANGED
@@ -5,6 +5,7 @@ require 'bespokify/client/pattern'
|
|
5
5
|
require 'bespokify/client/prediction'
|
6
6
|
require 'bespokify/client/export'
|
7
7
|
require 'bespokify/client/measurement_profile'
|
8
|
+
require 'bespokify/client/export_profile'
|
8
9
|
|
9
10
|
module Bespokify
|
10
11
|
class Client
|
@@ -16,6 +17,7 @@ module Bespokify
|
|
16
17
|
include Bespokify::Client::Prediction
|
17
18
|
include Bespokify::Client::Export
|
18
19
|
include Bespokify::Client::MeasurementProfile
|
20
|
+
include Bespokify::Client::ExportProfile
|
19
21
|
base_uri 'https://api.bespokify.com/v2'
|
20
22
|
|
21
23
|
def initialize(login, password)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Bespokify
|
2
|
+
class Client
|
3
|
+
module ExportProfile
|
4
|
+
def export_profiles(options = {})
|
5
|
+
get('/exportProfiles', options)
|
6
|
+
end
|
7
|
+
|
8
|
+
def export_profile(export_profile_id)
|
9
|
+
get("/exportProfiles/#{export_profile_id}")
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_export_profile(options = {})
|
13
|
+
post('/exportProfiles', options)
|
14
|
+
end
|
15
|
+
|
16
|
+
def update_export_profile(export_profile_id, options = {})
|
17
|
+
patch("/exportProfiles/#{export_profile_id}", options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def delete_export_profile(export_profile_id)
|
21
|
+
delete("/exportProfiles/#{export_profile_id}")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/bespokify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bespokify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ED1FF
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/bespokify/client/connection.rb
|
77
77
|
- lib/bespokify/client/draft.rb
|
78
78
|
- lib/bespokify/client/export.rb
|
79
|
+
- lib/bespokify/client/export_profile.rb
|
79
80
|
- lib/bespokify/client/material.rb
|
80
81
|
- lib/bespokify/client/measurement_profile.rb
|
81
82
|
- lib/bespokify/client/pattern.rb
|