Module: Viddlereo
- Defined in:
- lib/viddlereo.rb,
lib/viddlereo/echo.rb,
lib/viddlereo/error.rb,
lib/viddlereo/param.rb,
lib/viddlereo/video.rb,
lib/viddlereo/upload.rb,
lib/viddlereo/session.rb,
lib/viddlereo/playlist.rb,
lib/viddlereo/resource.rb
Defined Under Namespace
Classes: Echo, Error, Param, Playlist, Resource, Session, Upload, Video
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
46
47
48
|
# File 'lib/viddlereo.rb', line 46
def self.configuration
configatron.viddlereo
end
|
.forget_session ⇒ Object
34
35
36
|
# File 'lib/viddlereo.rb', line 34
def self.forget_session
configuration.session_id = nil
end
|
.has_session? ⇒ Boolean
42
43
44
|
# File 'lib/viddlereo.rb', line 42
def self.has_session?
!session_id.nil?
end
|
.key ⇒ Object
10
11
12
|
# File 'lib/viddlereo.rb', line 10
def self.key
configuration.key
end
|
.key=(key) ⇒ Object
6
7
8
|
# File 'lib/viddlereo.rb', line 6
def self.key=(key)
configuration.key = key
end
|
.password ⇒ Object
26
27
28
|
# File 'lib/viddlereo.rb', line 26
def self.password
configuration.password
end
|
.password=(password) ⇒ Object
22
23
24
|
# File 'lib/viddlereo.rb', line 22
def self.password=(password)
configuration.password = password
end
|
.retrieve_session ⇒ Object
30
31
32
|
# File 'lib/viddlereo.rb', line 30
def self.retrieve_session
configuration.session_id = Viddlereo::Session.auth.session_id
end
|
.session_id ⇒ Object
38
39
40
|
# File 'lib/viddlereo.rb', line 38
def self.session_id
configuration.session_id
end
|
.user ⇒ Object
18
19
20
|
# File 'lib/viddlereo.rb', line 18
def self.user
configuration.user
end
|
.user=(user) ⇒ Object
14
15
16
|
# File 'lib/viddlereo.rb', line 14
def self.user=(user)
configuration.user = user
end
|