class ThreeScaleToolbox::Commands::ActiveDocsCommand::Apply::CustomPrinter
Attributes
option_hide[R]
option_publish[R]
Public Class Methods
new(options)
click to toggle source
# File lib/3scale_toolbox/commands/activedocs_command/apply_command.rb, line 8 def initialize(options) @option_publish = options[:publish] @option_hide = options[:hide] end
Public Instance Methods
print_collection(collection)
click to toggle source
# File lib/3scale_toolbox/commands/activedocs_command/apply_command.rb, line 20 def print_collection(collection) end
print_record(active_docs)
click to toggle source
# File lib/3scale_toolbox/commands/activedocs_command/apply_command.rb, line 13 def print_record(active_docs) output_msg_array = ["Applied ActiveDocs id: #{active_docs['id']}"] output_msg_array << 'Published' if option_publish output_msg_array << 'Hidden' if option_hide puts output_msg_array.join(';') end