Class: Brocktail::Base
- Inherits:
-
Object
- Object
- Brocktail::Base
- Defined in:
- lib/brocktail/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #acts(event_id) ⇒ Object
- #events ⇒ Object
-
#initialize(username, password, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(username, password, options = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 |
# File 'lib/brocktail/base.rb', line 6 def initialize(username, password, = {}) [:ssl] = true if [:ssl].nil? @credentials = Credentials.new(username, password, [:ssl]) raise InvalidCredentials unless credentials.valid? end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
4 5 6 |
# File 'lib/brocktail/base.rb', line 4 def credentials @credentials end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
4 5 6 |
# File 'lib/brocktail/base.rb', line 4 def request @request end |