Class: Proximity::ProxySet
- Inherits:
-
Object
- Object
- Proximity::ProxySet
- Includes:
- Dsl
- Defined in:
- lib/proximity/proxy_set.rb
Defined Under Namespace
Modules: Scope
Instance Attribute Summary collapse
-
#route_set ⇒ Object
Returns the value of attribute route_set.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(route_set, source, target) ⇒ ProxySet
constructor
A new instance of ProxySet.
- #routes ⇒ Object
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_set ⇒ Object
Returns the value of attribute route_set.
4 5 6 |
# File 'lib/proximity/proxy_set.rb', line 4 def route_set @route_set end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/proximity/proxy_set.rb', line 4 def source @source end |
#target ⇒ Object
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_scheme ⇒ Object
6 7 8 |
# File 'lib/proximity/proxy_set.rb', line 6 def self.default_scheme 'http' end |
Instance Method Details
#routes ⇒ Object
16 17 18 |
# File 'lib/proximity/proxy_set.rb', line 16 def routes route_set.routes end |