Class: Ondotori::WebAPI::StbWebAccess

Inherits:
WebAccess
  • Object
show all
Defined in:
lib/ondotori/webapi/webaccess.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout, on_access) ⇒ StbWebAccess

Returns a new instance of StbWebAccess.



18
19
20
21
# File 'lib/ondotori/webapi/webaccess.rb', line 18

def initialize(timeout, on_access)
  super timeout
  @on_access = on_access
end

Instance Attribute Details

#on_access=(value) ⇒ Object (writeonly)

Sets the attribute on_access

Parameters:

  • value

    the value to set the attribute on_access to.



28
29
30
# File 'lib/ondotori/webapi/webaccess.rb', line 28

def on_access=(value)
  @on_access = value
end

#paramsObject (readonly)

Returns the value of attribute params.



16
17
18
# File 'lib/ondotori/webapi/webaccess.rb', line 16

def params
  @params
end

Instance Method Details

#access(_uri, params) ⇒ Object



23
24
25
26
# File 'lib/ondotori/webapi/webaccess.rb', line 23

def access(_uri, params)
  @params = params
  @on_access.call(self)
end