module Facile::Api::HttpMethods
Public Class Methods
extended(base)
click to toggle source
# File lib/facile/api/http_methods.rb, line 3 def self.extended(base) base.instance_variable_set(:@defaults, {}) end
Public Instance Methods
body(body = nil)
click to toggle source
# File lib/facile/api/http_methods.rb, line 13 def body(body = nil) return defaults[:body] if body.nil? defaults[:body] = body end
headers(headers = nil)
click to toggle source
# File lib/facile/api/http_methods.rb, line 19 def headers(headers = nil) return defaults[:headers] if headers.nil? defaults[:headers] = headers end
options(options = nil)
click to toggle source
# File lib/facile/api/http_methods.rb, line 31 def options(options = nil) return defaults[:options] if options.nil? defaults[:options] = options end
params(params = nil)
click to toggle source
# File lib/facile/api/http_methods.rb, line 25 def params(params = nil) return defaults[:params] if params.nil? defaults[:params] = params end
url(url = nil)
click to toggle source
# File lib/facile/api/http_methods.rb, line 7 def url(url = nil) return defaults[:url] if url.nil? defaults[:url] = url end
Protected Instance Methods
defaults()
click to toggle source
# File lib/facile/api/http_methods.rb, line 40 def defaults @defaults end