Visibility timeout issue in right_aws gem

I have a rails application and I am using amazon sqs for queuing
mechanism.
I am trying to create a queue with right_aws gem by setting the
visibility
timeout as 60 sec for the queue. Though I am able to create queue names,
it
is not applying the timeout value which I have specified while creation
of
queue name. It still shows the default timeout value(i.e 30)…

In my rails initializers I am creating queue as

APP_CONFIG =

YAML.load_file(Rails.root.join(‘config/amazon_settings.yml’))[Rails.env]
sqs = RightAws::SqsGen2.new(“ABCC”,“DEFG”)

#creating regular and priority queues
$regular_queue = RightAws::SqsGen2::Queue.create(sqs,

‘queue_reg’,visibility=60)
$priority_queue =
RightAws::SqsGen2::Queue.create(sqs,‘queue_pri’,visibility=60)

But in the logger when I try to print the timeout attribute for both
($regular_queue and $priority_queue), it shows as “30”

Please help.