Module: HTTParty

Defined in:
lib/httparty.rb,
lib/httparty/request.rb,
lib/httparty/version.rb

Defined Under Namespace

Modules: ClassMethods, VERSION Classes: RedirectionTooDeep, Request, UnsupportedFormat

Constant Summary collapse

AllowedFormats =
{:xml => 'text/xml', :json => 'application/json', :html => 'text/html'}

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



45
46
47
48
49
50
# File 'lib/httparty.rb', line 45

def self.included(base)
  base.extend ClassMethods
  base.send :include, ModuleLevelInheritableAttributes
  base.send(:mattr_inheritable, :default_options)
  base.instance_variable_set("@default_options", {})
end