Class: WEB_API::AuthMethod

Inherits:
WebApiMethod show all
Defined in:
lib/web_api/auth.rb

Direct Known Subclasses

Signed2Method, SignedMethod

Constant Summary

Constants inherited from WebApiMethod

WebApiMethod::OK, WebApiMethod::SCHEMES, WebApiMethod::SSL, WebApiMethod::TYPES

Instance Attribute Summary collapse

Attributes inherited from WebApiMethod

#base, #path, #type, #uri

Instance Method Summary collapse

Methods inherited from WebApiMethod

#arg_map, #args_map, #escape, #get, #headers, #http, #kv_map, #parse, #pathquery, #post

Constructor Details

#initialize(auth, *args) ⇒ AuthMethod

Returns a new instance of AuthMethod.



5
6
7
8
# File 'lib/web_api/auth.rb', line 5

def initialize(auth, *args)
  @auth = auth
  super(*args)
end

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



4
5
6
# File 'lib/web_api/auth.rb', line 4

def auth
  @auth
end

Instance Method Details

#call(args) ⇒ Object



10
11
12
13
# File 'lib/web_api/auth.rb', line 10

def call(args)
  args.unshift(@auth)
  super(args)
end