Class: FancyHands::Message
- Inherits:
-
Object
- Object
- FancyHands::Message
- Defined in:
- lib/fancyhands/v1/message.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ Message
constructor
A new instance of Message.
- #post(key = "", message = "") ⇒ Object
Constructor Details
#initialize(client) ⇒ Message
Returns a new instance of Message.
5 6 7 |
# File 'lib/fancyhands/v1/message.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#post(key = "", message = "") ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/fancyhands/v1/message.rb', line 9 def post(key="", ="") data = { :key => key, :message => , } return @client.request.post("request/standard/messages", data) end |