class Mirage::Template::Configuration
Constants
- DEFAULT_CONTENT_TYPE
- DEFAULT_DEFAULT
- DEFAULT_DELAY
- DEFAULT_HTTP_METHOD
- DEFAULT_STATUS
Attributes
caller_binding[RW]
Public Class Methods
new()
click to toggle source
# File lib/mirage/client/template/configuration.rb, line 15 def initialize reset end
Public Instance Methods
==(config)
click to toggle source
# File lib/mirage/client/template/configuration.rb, line 32 def == config config.is_a?(Configuration) && http_method == config.http_method && status == config.status && delay == config.delay && content_type == config.content_type && default == config.default end
method_missing(method, *args, &block)
click to toggle source
# File lib/mirage/client/template/configuration.rb, line 28 def method_missing(method, *args, &block) @caller_binding.send method, *args, &block if @caller_binding end
reset()
click to toggle source
# File lib/mirage/client/template/configuration.rb, line 19 def reset @http_method = DEFAULT_HTTP_METHOD @status = DEFAULT_STATUS @delay = DEFAULT_DELAY @content_type = DEFAULT_CONTENT_TYPE @default = DEFAULT_DEFAULT end