Class: Service::Client::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/service-client/route.rb

Instance Method Summary collapse

Instance Method Details

#add_pattern(method, pattern) ⇒ Object



2
3
4
# File 'lib/service-client/route.rb', line 2

def add_pattern(method, pattern)
  patterns[method] = Service::Client::UrlPattern.new(pattern)
end

#bind(*args) ⇒ Object



6
7
8
# File 'lib/service-client/route.rb', line 6

def bind(*args)
  Service::Client::BoundRoute.new(self, args)
end

#pattern_for(method) ⇒ Object



10
11
12
# File 'lib/service-client/route.rb', line 10

def pattern_for(method)
  patterns[method]
end