Class: RoQua::Site
- Inherits:
-
Object
- Object
- RoQua::Site
- Defined in:
- lib/roqua/site.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
- #answers(options = {}) ⇒ Object
-
#initialize(base_url, username, password) ⇒ Site
constructor
A new instance of Site.
Constructor Details
#initialize(base_url, username, password) ⇒ Site
Returns a new instance of Site.
7 8 9 10 11 |
# File 'lib/roqua/site.rb', line 7 def initialize(base_url, username, password) @url = Addressable::URI.parse(base_url) @url.user = username @url.password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/roqua/site.rb', line 5 def password @password end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/roqua/site.rb', line 3 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/roqua/site.rb', line 4 def username @username end |