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, hash_find_value, #http?, #https?, #keyword_argument, uri_dirname, uri_part_of, urify

Constructor Details

#initialize(*args) ⇒ 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

#callbackObject

Returns the value of attribute callback.



745
746
747
# File 'lib/httpclient/auth.rb', line 745

def callback
  @callback
end

#consumer_keyObject

Returns the value of attribute consumer_key.



739
740
741
# File 'lib/httpclient/auth.rb', line 739

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



740
741
742
# File 'lib/httpclient/auth.rb', line 740

def consumer_secret
  @consumer_secret
end

#debug_nonceObject

Returns the value of attribute debug_nonce.



754
755
756
# File 'lib/httpclient/auth.rb', line 754

def debug_nonce
  @debug_nonce
end

#debug_timestampObject

Returns the value of attribute debug_timestamp.



753
754
755
# File 'lib/httpclient/auth.rb', line 753

def debug_timestamp
  @debug_timestamp
end

#http_methodObject

Returns the value of attribute http_method.



737
738
739
# File 'lib/httpclient/auth.rb', line 737

def http_method
  @http_method
end

#realmObject

Returns the value of attribute realm.



738
739
740
# File 'lib/httpclient/auth.rb', line 738

def realm
  @realm
end

#secretObject

Returns the value of attribute secret.



742
743
744
# File 'lib/httpclient/auth.rb', line 742

def secret
  @secret
end

#session_handleObject

for OAuth Session 1.0 (draft)



749
750
751
# File 'lib/httpclient/auth.rb', line 749

def session_handle
  @session_handle
end

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

Returns the value of attribute signature_method.



743
744
745
# File 'lib/httpclient/auth.rb', line 743

def signature_method
  @signature_method
end

#tokenObject

Returns the value of attribute token.



741
742
743
# File 'lib/httpclient/auth.rb', line 741

def token
  @token
end

#verifierObject

Returns the value of attribute verifier.



746
747
748
# File 'lib/httpclient/auth.rb', line 746

def verifier
  @verifier
end

#versionObject

Returns the value of attribute version.



744
745
746
# File 'lib/httpclient/auth.rb', line 744

def version
  @version
end