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.
756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 |
# File 'lib/httpclient/auth.rb', line 756 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.
745 746 747 |
# File 'lib/httpclient/auth.rb', line 745 def callback @callback end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
739 740 741 |
# File 'lib/httpclient/auth.rb', line 739 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
740 741 742 |
# File 'lib/httpclient/auth.rb', line 740 def consumer_secret @consumer_secret end |
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
754 755 756 |
# File 'lib/httpclient/auth.rb', line 754 def debug_nonce @debug_nonce end |
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
753 754 755 |
# File 'lib/httpclient/auth.rb', line 753 def @debug_timestamp end |
#http_method ⇒ Object
Returns the value of attribute http_method.
737 738 739 |
# File 'lib/httpclient/auth.rb', line 737 def http_method @http_method end |
#realm ⇒ Object
Returns the value of attribute realm.
738 739 740 |
# File 'lib/httpclient/auth.rb', line 738 def realm @realm end |
#secret ⇒ Object
Returns the value of attribute secret.
742 743 744 |
# File 'lib/httpclient/auth.rb', line 742 def secret @secret end |
#session_handle ⇒ Object
for OAuth Session 1.0 (draft)
749 750 751 |
# File 'lib/httpclient/auth.rb', line 749 def session_handle @session_handle end |
#signature_handler ⇒ Object (readonly)
Returns the value of attribute signature_handler.
751 752 753 |
# File 'lib/httpclient/auth.rb', line 751 def signature_handler @signature_handler end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
743 744 745 |
# File 'lib/httpclient/auth.rb', line 743 def signature_method @signature_method end |
#token ⇒ Object
Returns the value of attribute token.
741 742 743 |
# File 'lib/httpclient/auth.rb', line 741 def token @token end |
#verifier ⇒ Object
Returns the value of attribute verifier.
746 747 748 |
# File 'lib/httpclient/auth.rb', line 746 def verifier @verifier end |
#version ⇒ Object
Returns the value of attribute version.
744 745 746 |
# File 'lib/httpclient/auth.rb', line 744 def version @version end |