class ThreeScaleToolbox::Commands::ApplicationCommand::Apply::CustomPrinter
Attributes
option_resume[R]
option_suspend[R]
Public Class Methods
new(options)
click to toggle source
# File lib/3scale_toolbox/commands/application_command/apply_command.rb, line 8 def initialize(options) @option_resume = options[:resume] @option_suspend = options[:suspend] end
Public Instance Methods
print_collection(collection)
click to toggle source
# File lib/3scale_toolbox/commands/application_command/apply_command.rb, line 20 def print_collection(collection) end
print_record(application)
click to toggle source
# File lib/3scale_toolbox/commands/application_command/apply_command.rb, line 13 def print_record(application) output_msg_array = ["Applied application id: #{application['id']}"] output_msg_array << 'Resumed' if option_resume output_msg_array << 'Suspended' if option_suspend puts output_msg_array.join('; ') end