Class: Cwmp::AcsCpe

Inherits:
Object
  • Object
show all
Defined in:
lib/cwmp/acs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serial) ⇒ AcsCpe

Returns a new instance of AcsCpe.



31
32
33
34
35
36
# File 'lib/cwmp/acs.rb', line 31

def initialize serial
    @serial = serial
    @queue = Queue.new
    @req_currently_in_service = nil
    @session = nil
end

Instance Attribute Details

#conn_reqObject

Returns the value of attribute conn_req.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def conn_req
  @conn_req
end

#queueObject

Returns the value of attribute queue.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def queue
  @queue
end

#req_currently_in_serviceObject

Returns the value of attribute req_currently_in_service.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def req_currently_in_service
  @req_currently_in_service
end

#serialObject

Returns the value of attribute serial.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def serial
  @serial
end

#sessionObject

Returns the value of attribute session.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def session
  @session
end

Returns the value of attribute session_cookie.



29
30
31
# File 'lib/cwmp/acs.rb', line 29

def session_cookie
  @session_cookie
end

Instance Method Details

#do_connection_requestObject



38
39
40
41
# File 'lib/cwmp/acs.rb', line 38

def do_connection_request
    c = HTTPClient.new
    c.get @conn_req
end