Class: WEB_API::AuthMethod
- Inherits:
-
WebApiMethod
- Object
- WebApiMethod
- WEB_API::AuthMethod
- Defined in:
- lib/web_api/auth.rb
Direct Known Subclasses
Constant Summary
Constants inherited from WebApiMethod
WebApiMethod::OK, WebApiMethod::SCHEMES, WebApiMethod::SSL, WebApiMethod::TYPES
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
Attributes inherited from WebApiMethod
Instance Method Summary collapse
- #call(args) ⇒ Object
-
#initialize(auth, *args) ⇒ AuthMethod
constructor
A new instance of AuthMethod.
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
#auth ⇒ Object (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 |