Class: Servent::ProxyConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/servent/event_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host.



113
114
115
# File 'lib/servent/event_source.rb', line 113

def host
  @host
end

#passObject

Returns the value of attribute pass.



113
114
115
# File 'lib/servent/event_source.rb', line 113

def pass
  @pass
end

#portObject



116
117
118
# File 'lib/servent/event_source.rb', line 116

def port
  @port.to_i
end

#userObject

Returns the value of attribute user.



113
114
115
# File 'lib/servent/event_source.rb', line 113

def user
  @user
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


120
121
122
# File 'lib/servent/event_source.rb', line 120

def empty?
  @host.nil? && @port.nil? && @user.nil? && @pass.nil?
end

#parameterizeObject



124
125
126
# File 'lib/servent/event_source.rb', line 124

def parameterize
  [host, port, user, pass]
end