Class: FancyHands::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/fancyhands/v1/message.rb

Instance Method Summary collapse

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="", message="")
  data = {
    :key => key,
    :message => message,
  }
  return @client.request.post("request/standard/messages", data)
end