Class: Foo::FooClass
- Inherits:
-
Object
- Object
- Foo::FooClass
- Defined in:
- lib/foo.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#login_url ⇒ Object
Returns the value of attribute login_url.
-
#logout_url ⇒ Object
Returns the value of attribute logout_url.
-
#number ⇒ Object
Returns the value of attribute number.
-
#success ⇒ Object
Returns the value of attribute success.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#validate_url ⇒ Object
Returns the value of attribute validate_url.
Instance Method Summary collapse
-
#initialize(conf = nil) ⇒ FooClass
constructor
A new instance of FooClass.
Constructor Details
#initialize(conf = nil) ⇒ FooClass
Returns a new instance of FooClass.
120 121 122 123 124 125 126 127 |
# File 'lib/foo.rb', line 120 def initialize(conf = nil) @address=conf[:address] @login_url= @address + "/login" @validate_url = @address + "/proxyValidate" @logout_url =@address + "/logout" @success=false @number=rand(1000) end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
118 119 120 |
# File 'lib/foo.rb', line 118 def address @address end |
#login_url ⇒ Object
Returns the value of attribute login_url.
118 119 120 |
# File 'lib/foo.rb', line 118 def login_url @login_url end |
#logout_url ⇒ Object
Returns the value of attribute logout_url.
118 119 120 |
# File 'lib/foo.rb', line 118 def logout_url @logout_url end |
#number ⇒ Object
Returns the value of attribute number.
118 119 120 |
# File 'lib/foo.rb', line 118 def number @number end |
#success ⇒ Object
Returns the value of attribute success.
118 119 120 |
# File 'lib/foo.rb', line 118 def success @success end |
#uri ⇒ Object
Returns the value of attribute uri.
118 119 120 |
# File 'lib/foo.rb', line 118 def uri @uri end |
#validate_url ⇒ Object
Returns the value of attribute validate_url.
118 119 120 |
# File 'lib/foo.rb', line 118 def validate_url @validate_url end |