Class: IAuthU::Site::Builder
- Inherits:
-
Object
- Object
- IAuthU::Site::Builder
- Defined in:
- lib/iauthu/site.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
- #cred(name, credential) ⇒ Object
- #debug(bool = true) ⇒ Object
- #debug_suffix(suffix) ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #shared_secret(str) ⇒ Object
- #url(url) ⇒ Object
Constructor Details
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
58 59 60 |
# File 'lib/iauthu/site.rb', line 58 def site @site end |
Instance Method Details
#cred(name, credential) ⇒ Object
76 77 78 79 |
# File 'lib/iauthu/site.rb', line 76 def cred(name, credential) name = name.to_sym @site.credentials[name] = credential.to_s end |
#debug(bool = true) ⇒ Object
68 69 70 |
# File 'lib/iauthu/site.rb', line 68 def debug(bool=true) @site.debug = bool end |
#debug_suffix(suffix) ⇒ Object
64 65 66 |
# File 'lib/iauthu/site.rb', line 64 def debug_suffix(suffix) @site.debug_suffix = suffix end |
#shared_secret(str) ⇒ Object
72 73 74 |
# File 'lib/iauthu/site.rb', line 72 def shared_secret(str) @site.shared_secret = str end |
#url(url) ⇒ Object
60 61 62 |
# File 'lib/iauthu/site.rb', line 60 def url(url) @site.url = url end |