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, hash_find_value, #http?, #https?, #keyword_argument, uri_dirname, uri_part_of, urify
Constructor Details
#initialize(*args) ⇒ Config
Returns a new instance of Config.
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 |
# File 'lib/httpclient/auth.rb', line 693 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.
682 683 684 |
# File 'lib/httpclient/auth.rb', line 682 def callback @callback end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
676 677 678 |
# File 'lib/httpclient/auth.rb', line 676 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
677 678 679 |
# File 'lib/httpclient/auth.rb', line 677 def consumer_secret @consumer_secret end |
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
691 692 693 |
# File 'lib/httpclient/auth.rb', line 691 def debug_nonce @debug_nonce end |
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
690 691 692 |
# File 'lib/httpclient/auth.rb', line 690 def @debug_timestamp end |
#http_method ⇒ Object
Returns the value of attribute http_method.
674 675 676 |
# File 'lib/httpclient/auth.rb', line 674 def http_method @http_method end |
#realm ⇒ Object
Returns the value of attribute realm.
675 676 677 |
# File 'lib/httpclient/auth.rb', line 675 def realm @realm end |
#secret ⇒ Object
Returns the value of attribute secret.
679 680 681 |
# File 'lib/httpclient/auth.rb', line 679 def secret @secret end |
#session_handle ⇒ Object
for OAuth Session 1.0 (draft)
686 687 688 |
# File 'lib/httpclient/auth.rb', line 686 def session_handle @session_handle end |
#signature_handler ⇒ Object (readonly)
Returns the value of attribute signature_handler.
688 689 690 |
# File 'lib/httpclient/auth.rb', line 688 def signature_handler @signature_handler end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
680 681 682 |
# File 'lib/httpclient/auth.rb', line 680 def signature_method @signature_method end |
#token ⇒ Object
Returns the value of attribute token.
678 679 680 |
# File 'lib/httpclient/auth.rb', line 678 def token @token end |
#verifier ⇒ Object
Returns the value of attribute verifier.
683 684 685 |
# File 'lib/httpclient/auth.rb', line 683 def verifier @verifier end |
#version ⇒ Object
Returns the value of attribute version.
681 682 683 |
# File 'lib/httpclient/auth.rb', line 681 def version @version end |