Class: Configuration::Handler::HandlerConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/httpimagestore/configuration/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global, http_method, uri_matchers) ⇒ HandlerConfiguration

Returns a new instance of HandlerConfiguration.



105
106
107
108
109
110
111
112
113
114
# File 'lib/httpimagestore/configuration/handler.rb', line 105

def initialize(global, http_method, uri_matchers)
  @global = global
  @http_method = http_method
  @uri_matchers = uri_matchers
  @validators = []
  @sources = []
  @processors = []
  @stores = []
  @output = nil
end

Instance Attribute Details

#globalObject

Returns the value of attribute global.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def global
  @global
end

#http_methodObject

Returns the value of attribute http_method.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def http_method
  @http_method
end

#outputObject

Returns the value of attribute output.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def output
  @output
end

#processorsObject

Returns the value of attribute processors.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def processors
  @processors
end

#sourcesObject

Returns the value of attribute sources.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def sources
  @sources
end

#storesObject

Returns the value of attribute stores.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def stores
  @stores
end

#uri_matchersObject

Returns the value of attribute uri_matchers.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def uri_matchers
  @uri_matchers
end

#validatorsObject

Returns the value of attribute validators.



116
117
118
# File 'lib/httpimagestore/configuration/handler.rb', line 116

def validators
  @validators
end

Instance Method Details

#to_sObject



118
119
120
# File 'lib/httpimagestore/configuration/handler.rb', line 118

def to_s
  "#{@http_method} #{@uri_matchers.join(', ')}"
end