Class: Ribose::CLI::Commands::Message

Inherits:
Base
  • Object
show all
Defined in:
lib/ribose/cli/commands/message.rb

Instance Method Summary collapse

Instance Method Details

#addObject



19
20
21
22
# File 'lib/ribose/cli/commands/message.rb', line 19

def add
  message = create_message(options)
  say("Messge has been posted! Id: " + message.id)
end

#listObject



10
11
12
# File 'lib/ribose/cli/commands/message.rb', line 10

def list
  say(build_output(list_messages, options))
end

#removeObject



40
41
42
43
44
45
# File 'lib/ribose/cli/commands/message.rb', line 40

def remove
  remove_message(options)
  say("The message has been removed!")
rescue
  say("Please provide a valid message UUID")
end

#updateObject



30
31
32
33
# File 'lib/ribose/cli/commands/message.rb', line 30

def update
  update_message(options)
  say("Messge has been updated!")
end