class Browsery::Connector::Config
Simple configuration container for all profiles. Struct is not used here because it contaminates the class with Enumerable methods, which will cause method_missing in Connector
to get confused.
Attributes
connector[RW]
env[RW]
Public Class Methods
new(connector, env)
click to toggle source
Initialize a new configuration object. This object should never be instantiated directly.
@api private
# File lib/browsery/connector.rb, line 32 def initialize(connector, env) @connector = connector @env = env end
Public Instance Methods
==(other)
click to toggle source
# File lib/browsery/connector.rb, line 17 def ==(other) self.class == other.class && self.connector == other.connector && self.env == other.env end
Also aliased as: eql?
hash()
click to toggle source
Hashing mechanism should only look at the connector and environment values
# File lib/browsery/connector.rb, line 24 def hash @connector.hash ^ @env.hash end