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

#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.



566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
# File 'lib/httpclient/auth.rb', line 566

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.



555
556
557
# File 'lib/httpclient/auth.rb', line 555

def callback
  @callback
end

#consumer_keyObject

Returns the value of attribute consumer_key.



549
550
551
# File 'lib/httpclient/auth.rb', line 549

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



550
551
552
# File 'lib/httpclient/auth.rb', line 550

def consumer_secret
  @consumer_secret
end

#debug_nonceObject

Returns the value of attribute debug_nonce.



564
565
566
# File 'lib/httpclient/auth.rb', line 564

def debug_nonce
  @debug_nonce
end

#debug_timestampObject

Returns the value of attribute debug_timestamp.



563
564
565
# File 'lib/httpclient/auth.rb', line 563

def debug_timestamp
  @debug_timestamp
end

#http_methodObject

Returns the value of attribute http_method.



547
548
549
# File 'lib/httpclient/auth.rb', line 547

def http_method
  @http_method
end

#realmObject

Returns the value of attribute realm.



548
549
550
# File 'lib/httpclient/auth.rb', line 548

def realm
  @realm
end

#secretObject

Returns the value of attribute secret.



552
553
554
# File 'lib/httpclient/auth.rb', line 552

def secret
  @secret
end

#session_handleObject

for OAuth Session 1.0 (draft)



559
560
561
# File 'lib/httpclient/auth.rb', line 559

def session_handle
  @session_handle
end

#signature_handlerObject (readonly)

Returns the value of attribute signature_handler.



561
562
563
# File 'lib/httpclient/auth.rb', line 561

def signature_handler
  @signature_handler
end

#signature_methodObject

Returns the value of attribute signature_method.



553
554
555
# File 'lib/httpclient/auth.rb', line 553

def signature_method
  @signature_method
end

#tokenObject

Returns the value of attribute token.



551
552
553
# File 'lib/httpclient/auth.rb', line 551

def token
  @token
end

#verifierObject

Returns the value of attribute verifier.



556
557
558
# File 'lib/httpclient/auth.rb', line 556

def verifier
  @verifier
end

#versionObject

Returns the value of attribute version.



554
555
556
# File 'lib/httpclient/auth.rb', line 554

def version
  @version
end