eyeson 2.5.0 → 2.6.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/eyeson.rb +1 -0
- data/lib/eyeson/snapshot.rb +25 -0
- data/lib/eyeson/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a653175d094f20cb3698b491db71966c7f72f1e6
|
4
|
+
data.tar.gz: 883b6b6b25155b4ba6a57510bf2b31c14da816b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3c1012a8cc49c96b01a6da3a9e982382b86c1da01e8f3425ad741bbf798c1bdc4d33ae5dfd2831fc24b94cf763c10768c10f2f9487bb230a49f8379ae29742
|
7
|
+
data.tar.gz: 74ab1fceb2a5013736bce9023365db89d48c53150d84713a4a34d96d69a19cc713e0e3ea1add9f4132605f0aa94df0f58b6e66b8567a0ac07f8dd71f5cc89043
|
data/lib/eyeson.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Eyeson
|
2
|
+
# Get room snapshots
|
3
|
+
class Snapshot
|
4
|
+
class NotFound < StandardError
|
5
|
+
end
|
6
|
+
|
7
|
+
attr_reader :id, :url
|
8
|
+
|
9
|
+
def initialize(id, url)
|
10
|
+
@id = id
|
11
|
+
@url = url
|
12
|
+
end
|
13
|
+
|
14
|
+
def delete
|
15
|
+
Eyeson.delete "/snapshots/#{id}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.find(snapshot_id)
|
19
|
+
response = Eyeson.get("/snapshots/#{snapshot_id}")
|
20
|
+
links = response['links']
|
21
|
+
raise NotFound if links.nil?
|
22
|
+
Snapshot.new snapshot_id, links['download']
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/eyeson/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyeson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Maier
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/eyeson/recording.rb
|
60
60
|
- lib/eyeson/requests.rb
|
61
61
|
- lib/eyeson/room.rb
|
62
|
+
- lib/eyeson/snapshot.rb
|
62
63
|
- lib/eyeson/version.rb
|
63
64
|
- lib/eyeson/webhook.rb
|
64
65
|
- lib/tasks/eyeson_tasks.rake
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.5.2
|
86
87
|
signing_key:
|
87
88
|
specification_version: 4
|
88
89
|
summary: eyeson API
|