Module: Hoptoad
- Extended by:
- Hoptoad
- Included in:
- Hoptoad
- Defined in:
- lib/hoptoad-api.rb,
lib/hoptoad-api/error.rb,
lib/hoptoad-api/client.rb,
lib/hoptoad-api/notice.rb,
lib/hoptoad-api/project.rb,
lib/hoptoad-api/version.rb
Defined Under Namespace
Classes: Base, Error, HoptoadError, Notice, Project
Constant Summary collapse
- VERSION =
'2.5.0'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#secure ⇒ Object
Returns the value of attribute secure.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
6 7 8 |
# File 'lib/hoptoad-api.rb', line 6 def account @account end |
#auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/hoptoad-api.rb', line 6 def auth_token @auth_token end |
#secure ⇒ Object
Returns the value of attribute secure.
6 7 8 |
# File 'lib/hoptoad-api.rb', line 6 def secure @secure end |
Instance Method Details
#account_path ⇒ Object
16 17 18 |
# File 'lib/hoptoad-api.rb', line 16 def account_path "#{protocol}://#{@account}.hoptoadapp.com" end |
#configure(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/hoptoad-api.rb', line 10 def configure(={}) @account = [:account] if .has_key?(:account) @auth_token = [:auth_token] if .has_key?(:auth_token) @secure = [:secure] if .has_key?(:secure) end |
#protocol ⇒ Object
20 21 22 |
# File 'lib/hoptoad-api.rb', line 20 def protocol secure ? "https" : "http" end |