Class: HTTPClient::OAuth::Config
- Inherits:
-
Object
- Object
- HTTPClient::OAuth::Config
- Includes:
- Util
- Defined in:
- lib/httpclient/auth.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
-
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#realm ⇒ Object
Returns the value of attribute realm.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#session_handle ⇒ Object
for OAuth Session 1.0 (draft).
-
#signature_handler ⇒ Object
readonly
Returns the value of attribute signature_handler.
-
#signature_method ⇒ Object
Returns the value of attribute signature_method.
-
#token ⇒ Object
Returns the value of attribute token.
-
#verifier ⇒ Object
Returns the value of attribute verifier.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Config
constructor
A new instance of Config.
Methods included from Util
#force_binary, hash_find_value, #https?, #keyword_argument, uri_dirname, uri_part_of, #urify
Constructor Details
#initialize(*args) ⇒ Config
Returns a new instance of Config.
566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 |
# File 'lib/httpclient/auth.rb', line 566 def initialize(*args) @http_method, @realm, @consumer_key, @consumer_secret, @token, @secret, @signature_method, @version, @callback, @verifier = keyword_argument(args, :http_method, :realm, :consumer_key, :consumer_secret, :token, :secret, :signature_method, :version, :callback, :verifier ) @http_method ||= :post @session_handle = nil @signature_handler = {} end |
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
555 556 557 |
# File 'lib/httpclient/auth.rb', line 555 def callback @callback end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
549 550 551 |
# File 'lib/httpclient/auth.rb', line 549 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
550 551 552 |
# File 'lib/httpclient/auth.rb', line 550 def consumer_secret @consumer_secret end |
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
564 565 566 |
# File 'lib/httpclient/auth.rb', line 564 def debug_nonce @debug_nonce end |
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
563 564 565 |
# File 'lib/httpclient/auth.rb', line 563 def @debug_timestamp end |
#http_method ⇒ Object
Returns the value of attribute http_method.
547 548 549 |
# File 'lib/httpclient/auth.rb', line 547 def http_method @http_method end |
#realm ⇒ Object
Returns the value of attribute realm.
548 549 550 |
# File 'lib/httpclient/auth.rb', line 548 def realm @realm end |
#secret ⇒ Object
Returns the value of attribute secret.
552 553 554 |
# File 'lib/httpclient/auth.rb', line 552 def secret @secret end |
#session_handle ⇒ Object
for OAuth Session 1.0 (draft)
559 560 561 |
# File 'lib/httpclient/auth.rb', line 559 def session_handle @session_handle end |
#signature_handler ⇒ Object (readonly)
Returns the value of attribute signature_handler.
561 562 563 |
# File 'lib/httpclient/auth.rb', line 561 def signature_handler @signature_handler end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
553 554 555 |
# File 'lib/httpclient/auth.rb', line 553 def signature_method @signature_method end |
#token ⇒ Object
Returns the value of attribute token.
551 552 553 |
# File 'lib/httpclient/auth.rb', line 551 def token @token end |
#verifier ⇒ Object
Returns the value of attribute verifier.
556 557 558 |
# File 'lib/httpclient/auth.rb', line 556 def verifier @verifier end |
#version ⇒ Object
Returns the value of attribute version.
554 555 556 |
# File 'lib/httpclient/auth.rb', line 554 def version @version end |