Class: IAuthU::Site::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/iauthu/site.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



54
55
56
# File 'lib/iauthu/site.rb', line 54

def initialize
  @site = Site.new
end

Instance Attribute Details

#siteObject (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