lib/protolink/channel.rb in protolink-0.2.8 vs lib/protolink/channel.rb in protolink-0.2.9
- old
+ new
@@ -13,11 +13,11 @@
end
# Post a new message to the chat channel
def speak(message, options = {})
- send_message(message)
+ send_message(message, options)
end
def delete!
connection.delete("/api/v1/channels/#{self.id}")
end
@@ -47,11 +47,11 @@
@name = attributes['name']
@description = attributes['description']
@loaded = true
end
- def send_message(message)
- connection.post("/api/v1/meeps", :body => {:channel_id => self.id, :message => message})
+ def send_message(message, option)
+ connection.post("/api/v1/meeps", :body => {:channel_id => self.id, :message => message, :text_extension => option[:text_extension]})
end
def connection
@connection
end