Class: Proximity::ProxySet

Inherits:
Object
  • Object
show all
Includes:
Dsl
Defined in:
lib/proximity/proxy_set.rb

Defined Under Namespace

Modules: Scope

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Dsl

#dsl_exec, #scope, #scopeClass

Constructor Details

#initialize(route_set, source, target) ⇒ ProxySet

Returns a new instance of ProxySet.



10
11
12
13
14
# File 'lib/proximity/proxy_set.rb', line 10

def initialize(route_set, source, target)
  self.route_set = route_set
  self.source    = source
  self.target    = target
end

Instance Attribute Details

#route_setObject

Returns the value of attribute route_set.



4
5
6
# File 'lib/proximity/proxy_set.rb', line 4

def route_set
  @route_set
end

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/proximity/proxy_set.rb', line 4

def source
  @source
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/proximity/proxy_set.rb', line 4

def target
  @target
end

Class Method Details

.default_schemeObject



6
7
8
# File 'lib/proximity/proxy_set.rb', line 6

def self.default_scheme
  'http'
end

Instance Method Details

#routesObject



16
17
18
# File 'lib/proximity/proxy_set.rb', line 16

def routes
  route_set.routes
end