Class: Smess::GlobalMouth
- Defined in:
- lib/smess/outputs/global_mouth.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#sender_id ⇒ Object
Returns the value of attribute sender_id.
-
#username ⇒ Object
writeonly
Sets the attribute username.
Attributes inherited from Output
Instance Method Summary collapse
Methods inherited from HttpBase
Methods included from Logging
Methods inherited from Output
#check, #initialize, #send_feedback, #verify
Constructor Details
This class inherits a constructor from Smess::HttpBase
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
13 14 15 |
# File 'lib/smess/outputs/global_mouth.rb', line 13 def password @password end |
#sender_id ⇒ Object
Returns the value of attribute sender_id.
13 14 15 |
# File 'lib/smess/outputs/global_mouth.rb', line 13 def sender_id @sender_id end |
#username=(value) ⇒ Object
Sets the attribute username
13 14 15 |
# File 'lib/smess/outputs/global_mouth.rb', line 13 def username=(value) @username = value end |
Instance Method Details
#deliver ⇒ Object
7 8 9 10 11 |
# File 'lib/smess/outputs/global_mouth.rb', line 7 def deliver generate_mac_hash request.url = "#{url}?#{params.to_query}" http_get request end |
#validate_config ⇒ Object
14 15 16 17 18 |
# File 'lib/smess/outputs/global_mouth.rb', line 14 def validate_config @username = config.fetch(:username) @password = config.fetch(:password) @sender_id = config.fetch(:sender_id) end |