Class: Proximity::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/proximity/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route_set) ⇒ Proxy

Returns a new instance of Proxy.



5
6
7
# File 'lib/proximity/proxy.rb', line 5

def initialize(route_set)
  @route_set = route_set
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/proximity/proxy.rb', line 3

def format
  @format
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/proximity/proxy.rb', line 3

def source
  @source
end

#targetObject

Returns the value of attribute target.



3
4
5
# File 'lib/proximity/proxy.rb', line 3

def target
  @target
end

Instance Method Details

#inspectObject



21
22
23
# File 'lib/proximity/proxy.rb', line 21

def inspect
  "#<#{self.class.name} target=#{target} source=#{source}>"
end

#patternObject



17
18
19
# File 'lib/proximity/proxy.rb', line 17

def pattern
  Proximity.pathPatternClass.new(source)
end