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
#argument_to_hash, #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.
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 |
# File 'lib/httpclient/auth.rb', line 625 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.
614 615 616 |
# File 'lib/httpclient/auth.rb', line 614 def callback @callback end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
608 609 610 |
# File 'lib/httpclient/auth.rb', line 608 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
609 610 611 |
# File 'lib/httpclient/auth.rb', line 609 def consumer_secret @consumer_secret end |
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
623 624 625 |
# File 'lib/httpclient/auth.rb', line 623 def debug_nonce @debug_nonce end |
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
622 623 624 |
# File 'lib/httpclient/auth.rb', line 622 def @debug_timestamp end |
#http_method ⇒ Object
Returns the value of attribute http_method.
606 607 608 |
# File 'lib/httpclient/auth.rb', line 606 def http_method @http_method end |
#realm ⇒ Object
Returns the value of attribute realm.
607 608 609 |
# File 'lib/httpclient/auth.rb', line 607 def realm @realm end |
#secret ⇒ Object
Returns the value of attribute secret.
611 612 613 |
# File 'lib/httpclient/auth.rb', line 611 def secret @secret end |
#session_handle ⇒ Object
for OAuth Session 1.0 (draft)
618 619 620 |
# File 'lib/httpclient/auth.rb', line 618 def session_handle @session_handle end |
#signature_handler ⇒ Object (readonly)
Returns the value of attribute signature_handler.
620 621 622 |
# File 'lib/httpclient/auth.rb', line 620 def signature_handler @signature_handler end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
612 613 614 |
# File 'lib/httpclient/auth.rb', line 612 def signature_method @signature_method end |
#token ⇒ Object
Returns the value of attribute token.
610 611 612 |
# File 'lib/httpclient/auth.rb', line 610 def token @token end |
#verifier ⇒ Object
Returns the value of attribute verifier.
615 616 617 |
# File 'lib/httpclient/auth.rb', line 615 def verifier @verifier end |
#version ⇒ Object
Returns the value of attribute version.
613 614 615 |
# File 'lib/httpclient/auth.rb', line 613 def version @version end |