Class: MAndM::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/m_and_m/server.rb

Instance Method Summary collapse

Instance Method Details

#messagesObject



6
7
8
# File 'lib/m_and_m/server.rb', line 6

def messages
  HTTParty.get message_url
end

#say(to_uuid, message_id) ⇒ Object



10
11
12
13
14
# File 'lib/m_and_m/server.rb', line 10

def say to_uuid, message_id
  HTTParty.post base_url,
    body: message_body(to_uuid, message_id),
    headers: headers
end