Class: Webex::Events::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/webex/events.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



18
19
20
# File 'lib/webex/events.rb', line 18

def access_token
  @access_token
end

Class Method Details

.configure(&bloc) ⇒ Object



20
21
22
# File 'lib/webex/events.rb', line 20

def configure(&bloc)
  bloc.yield self
end

.max_retriesObject



57
58
59
# File 'lib/webex/events.rb', line 57

def max_retries
  @max_retries ||= 5
end

.max_retries=(retries) ⇒ Object



61
62
63
64
65
66
# File 'lib/webex/events.rb', line 61

def max_retries=(retries)
  if Integer(retries) < 0
    raise 'max_retries must be greater than or equal to 0, %s is given' % retries
  end
  @max_retries = retries
end

.open_timeoutObject



35
36
37
# File 'lib/webex/events.rb', line 35

def open_timeout
  @open_timeout ||= 10
end

.open_timeout=(timeout) ⇒ Object



39
40
41
42
43
44
# File 'lib/webex/events.rb', line 39

def open_timeout=(timeout)
  if Integer(timeout) <= 0
    raise 'open_timeout must be greater than 0, %s is given' % timeout
  end
  @open_timeout = timeout
end

.timeoutObject



24
25
26
# File 'lib/webex/events.rb', line 24

def timeout
  @timeout ||= 30
end

.timeout=(timeout) ⇒ Object



28
29
30
31
32
33
# File 'lib/webex/events.rb', line 28

def timeout=(timeout)
  if Integer(timeout) <= 0
    raise 'timeout must be greater than 0, %s is given' % timeout
  end
  @timeout = timeout
end

.write_timeoutObject



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

def write_timeout
  @write_timeout ||= 60
end

.write_timeout=(timeout) ⇒ Object



50
51
52
53
54
55
# File 'lib/webex/events.rb', line 50

def write_timeout=(timeout)
  if Integer(timeout) <= 0
    raise 'write_timeout must be greater than 0, %s is given' % timeout
  end
  @write_timeout = timeout
end