Class: Foo::FooClass

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



118
119
120
# File 'lib/foo.rb', line 118

def address
  @address
end

#login_urlObject

Returns the value of attribute login_url.



118
119
120
# File 'lib/foo.rb', line 118

def 
  @login_url
end

#logout_urlObject

Returns the value of attribute logout_url.



118
119
120
# File 'lib/foo.rb', line 118

def logout_url
  @logout_url
end

#numberObject

Returns the value of attribute number.



118
119
120
# File 'lib/foo.rb', line 118

def number
  @number
end

#successObject

Returns the value of attribute success.



118
119
120
# File 'lib/foo.rb', line 118

def success
  @success
end

#uriObject

Returns the value of attribute uri.



118
119
120
# File 'lib/foo.rb', line 118

def uri
  @uri
end

#validate_urlObject

Returns the value of attribute validate_url.



118
119
120
# File 'lib/foo.rb', line 118

def validate_url
  @validate_url
end