Class: HTTPClient::OAuth::Config

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/httpclient/auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#callbackObject

Returns the value of attribute callback



614
615
616
# File 'lib/httpclient/auth.rb', line 614

def callback
  @callback
end

#consumer_keyObject

Returns the value of attribute consumer_key



608
609
610
# File 'lib/httpclient/auth.rb', line 608

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret



609
610
611
# File 'lib/httpclient/auth.rb', line 609

def consumer_secret
  @consumer_secret
end

#debug_nonceObject

Returns the value of attribute debug_nonce



623
624
625
# File 'lib/httpclient/auth.rb', line 623

def debug_nonce
  @debug_nonce
end

#debug_timestampObject

Returns the value of attribute debug_timestamp



622
623
624
# File 'lib/httpclient/auth.rb', line 622

def debug_timestamp
  @debug_timestamp
end

#http_methodObject

Returns the value of attribute http_method



606
607
608
# File 'lib/httpclient/auth.rb', line 606

def http_method
  @http_method
end

#realmObject

Returns the value of attribute realm



607
608
609
# File 'lib/httpclient/auth.rb', line 607

def realm
  @realm
end

#secretObject

Returns the value of attribute secret



611
612
613
# File 'lib/httpclient/auth.rb', line 611

def secret
  @secret
end

#session_handleObject

for OAuth Session 1.0 (draft)



618
619
620
# File 'lib/httpclient/auth.rb', line 618

def session_handle
  @session_handle
end

#signature_handlerObject (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_methodObject

Returns the value of attribute signature_method



612
613
614
# File 'lib/httpclient/auth.rb', line 612

def signature_method
  @signature_method
end

#tokenObject

Returns the value of attribute token



610
611
612
# File 'lib/httpclient/auth.rb', line 610

def token
  @token
end

#verifierObject

Returns the value of attribute verifier



615
616
617
# File 'lib/httpclient/auth.rb', line 615

def verifier
  @verifier
end

#versionObject

Returns the value of attribute version



613
614
615
# File 'lib/httpclient/auth.rb', line 613

def version
  @version
end