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

.configurationObject



46
47
48
# File 'lib/viddlereo.rb', line 46

def self.configuration
  configatron.viddlereo
end

.forget_sessionObject



34
35
36
# File 'lib/viddlereo.rb', line 34

def self.forget_session
  configuration.session_id = nil
end

.has_session?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/viddlereo.rb', line 42

def self.has_session?
  !session_id.nil?
end

.keyObject



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

.passwordObject



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_sessionObject



30
31
32
# File 'lib/viddlereo.rb', line 30

def self.retrieve_session
  configuration.session_id = Viddlereo::Session.auth.session_id
end

.session_idObject



38
39
40
# File 'lib/viddlereo.rb', line 38

def self.session_id
  configuration.session_id
end

.userObject



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