class Reggora::Conversation
Public Class Methods
new(client)
click to toggle source
# File lib/reggora/Entity/Lender/conversation.rb, line 3 def initialize(client) @model = 'conversation' @client = client end
Public Instance Methods
find_by_id(id)
click to toggle source
returns a Conversation
object
# File lib/reggora/Entity/Lender/conversation.rb, line 8 def find_by_id(id) @client.get("/#{@model}/#{id}") end
send_message(id, message_params)
click to toggle source
Sends a message in the specified conversation
# File lib/reggora/Entity/Lender/conversation.rb, line 13 def send_message(id, message_params) @client.post("/#{@model}/#{id}", message_params) end