Class: DashingContrib::Pingdom::Credentials
- Inherits:
-
Object
- Object
- DashingContrib::Pingdom::Credentials
- Defined in:
- lib/dashing-contrib/bottles/pingdom/credentials.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#password ⇒ Object
Returns the value of attribute password.
-
#team_account ⇒ Object
Returns the value of attribute team_account.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(options = {}) ⇒ Credentials
Returns a new instance of Credentials.
8 9 10 11 12 13 14 |
# File 'lib/dashing-contrib/bottles/pingdom/credentials.rb', line 8 def initialize( = {}) = .merge() @api_key = [:api_key] || missing_args(:api_key) @password = CGI.escape([:password]) || missing_args(:password) @username = CGI.escape([:username]) || missing_args(:username) @team_account = [:team_account] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/dashing-contrib/bottles/pingdom/credentials.rb', line 6 def api_key @api_key end |
#password ⇒ Object
Returns the value of attribute password.
6 7 8 |
# File 'lib/dashing-contrib/bottles/pingdom/credentials.rb', line 6 def password @password end |
#team_account ⇒ Object
Returns the value of attribute team_account.
6 7 8 |
# File 'lib/dashing-contrib/bottles/pingdom/credentials.rb', line 6 def team_account @team_account end |
#username ⇒ Object
Returns the value of attribute username.
6 7 8 |
# File 'lib/dashing-contrib/bottles/pingdom/credentials.rb', line 6 def username @username end |