Class: Smess::CardBoardFish

Inherits:
HttpBase show all
Defined in:
lib/smess/outputs/card_board_fish.rb

Instance Attribute Summary collapse

Attributes inherited from Output

#config, #sms

Instance Method Summary collapse

Methods inherited from HttpBase

#initialize, #sender_id

Methods included from Logging

#logger

Methods inherited from Output

#check, #initialize, #send_feedback, #verify

Constructor Details

This class inherits a constructor from Smess::HttpBase

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/smess/outputs/card_board_fish.rb', line 9

def password
  @password
end

#usernameObject

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

#deliverObject



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_configObject



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