class LineSender

Constants

VERSION

Public Class Methods

new(options) click to toggle source
# File lib/line_sender/core.rb, line 5
def initialize(options)
  @client = Line::Bot::Client.new options
end

Public Instance Methods

send(user, message) click to toggle source
# File lib/line_sender/core.rb, line 9
def send(user, message)
  @client.push_message(user,{
    type: :text,
    text: message
  })
end