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.
-
#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
hash_find_value, #keyword_argument, uri_dirname, uri_part_of, #urify
Constructor Details
#initialize(*args) ⇒ Config
Returns a new instance of Config.
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 |
# File 'lib/httpclient/auth.rb', line 561 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 @signature_handler = {} end |
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback.
554 555 556 |
# File 'lib/httpclient/auth.rb', line 554 def callback @callback end |
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
548 549 550 |
# File 'lib/httpclient/auth.rb', line 548 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
549 550 551 |
# File 'lib/httpclient/auth.rb', line 549 def consumer_secret @consumer_secret end |
#debug_nonce ⇒ Object
Returns the value of attribute debug_nonce.
559 560 561 |
# File 'lib/httpclient/auth.rb', line 559 def debug_nonce @debug_nonce end |
#debug_timestamp ⇒ Object
Returns the value of attribute debug_timestamp.
558 559 560 |
# File 'lib/httpclient/auth.rb', line 558 def @debug_timestamp end |
#http_method ⇒ Object
Returns the value of attribute http_method.
546 547 548 |
# File 'lib/httpclient/auth.rb', line 546 def http_method @http_method end |
#realm ⇒ Object
Returns the value of attribute realm.
547 548 549 |
# File 'lib/httpclient/auth.rb', line 547 def realm @realm end |
#secret ⇒ Object
Returns the value of attribute secret.
551 552 553 |
# File 'lib/httpclient/auth.rb', line 551 def secret @secret end |
#signature_handler ⇒ Object (readonly)
Returns the value of attribute signature_handler.
556 557 558 |
# File 'lib/httpclient/auth.rb', line 556 def signature_handler @signature_handler end |
#signature_method ⇒ Object
Returns the value of attribute signature_method.
552 553 554 |
# File 'lib/httpclient/auth.rb', line 552 def signature_method @signature_method end |
#token ⇒ Object
Returns the value of attribute token.
550 551 552 |
# File 'lib/httpclient/auth.rb', line 550 def token @token end |
#verifier ⇒ Object
Returns the value of attribute verifier.
555 556 557 |
# File 'lib/httpclient/auth.rb', line 555 def verifier @verifier end |
#version ⇒ Object
Returns the value of attribute version.
553 554 555 |
# File 'lib/httpclient/auth.rb', line 553 def version @version end |