class SqsListQueues::Config
Attributes
client_options[RW]
Stronger builder pattern would be nice
json_format[RW]
Stronger builder pattern would be nice
patterns[RW]
Stronger builder pattern would be nice
show_arn[RW]
Stronger builder pattern would be nice
show_counts[RW]
Stronger builder pattern would be nice
show_url[RW]
Stronger builder pattern would be nice
sqs_client[RW]
Stronger builder pattern would be nice
Public Class Methods
new()
click to toggle source
# File lib/sqs-list-queues/config.rb, line 12 def initialize @client_options = {} @patterns = nil @show_counts = false @show_arn = false @show_url = false @json_format = false end
Public Instance Methods
validate()
click to toggle source
# File lib/sqs-list-queues/config.rb, line 21 def validate unless @json_format if @show_arn and @show_url raise "Can't show both ARN and URL unless JSON format is selected" end end end