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

hash_find_value, #keyword_argument, uri_dirname, uri_part_of, #urify

Constructor Details

#initialize(*args) ⇒ Config

Returns a new instance of Config.



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

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

#callbackObject

Returns the value of attribute callback.



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

def callback
  @callback
end

#consumer_keyObject

Returns the value of attribute consumer_key.



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

def consumer_key
  @consumer_key
end

#consumer_secretObject

Returns the value of attribute consumer_secret.



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

def consumer_secret
  @consumer_secret
end

#debug_nonceObject

Returns the value of attribute debug_nonce.



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

def debug_nonce
  @debug_nonce
end

#debug_timestampObject

Returns the value of attribute debug_timestamp.



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

def debug_timestamp
  @debug_timestamp
end

#http_methodObject

Returns the value of attribute http_method.



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

def http_method
  @http_method
end

#realmObject

Returns the value of attribute realm.



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

def realm
  @realm
end

#secretObject

Returns the value of attribute secret.



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

def secret
  @secret
end

#signature_handlerObject (readonly)

Returns the value of attribute signature_handler.



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

def signature_handler
  @signature_handler
end

#signature_methodObject

Returns the value of attribute signature_method.



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

def signature_method
  @signature_method
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end

#verifierObject

Returns the value of attribute verifier.



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

def verifier
  @verifier
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end