Class: TheMask::Connect

Inherits:
Object
  • Object
show all
Defined in:
lib/the_mask/connect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Connect

Returns a new instance of Connect.



5
6
7
# File 'lib/the_mask/connect.rb', line 5

def initialize(options = {})
  @socket = TheMask::Socket.new options
end

Instance Attribute Details

#socketObject

Returns the value of attribute socket.



3
4
5
# File 'lib/the_mask/connect.rb', line 3

def socket
  @socket
end

Instance Method Details

#open_url(url) ⇒ Object



9
10
11
# File 'lib/the_mask/connect.rb', line 9

def open_url(url)
  @socket.open_url url
end