Class: Smess::CardBoardFish
- Defined in:
- lib/smess/outputs/card_board_fish.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Output
Instance Method Summary collapse
Methods inherited from HttpBase
Methods included from Logging
Methods inherited from Output
Constructor Details
This class inherits a constructor from Smess::HttpBase
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/smess/outputs/card_board_fish.rb', line 9 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
9 10 11 |
# File 'lib/smess/outputs/card_board_fish.rb', line 9 def username @username end |
Instance Method Details
#deliver ⇒ Object
4 5 6 7 |
# File 'lib/smess/outputs/card_board_fish.rb', line 4 def deliver request.url = "#{url}?#{params.to_query}" http_get request end |
#validate_config ⇒ Object
10 11 12 13 |
# File 'lib/smess/outputs/card_board_fish.rb', line 10 def validate_config @username = config.fetch(:username) @password = config.fetch(:password) end |