Module: SimpleQS

Defined in:
lib/version.rb,
lib/simple_qs.rb,
lib/simple_qs/queue.rb,
lib/simple_qs/message.rb,
lib/simple_qs/request.rb,
lib/simple_qs/responce.rb,
lib/simple_qs/request/get.rb,
lib/simple_qs/request/base.rb,
lib/simple_qs/request/post.rb,
lib/simple_qs/responce/exceptions.rb,
lib/simple_qs/responce/failure_builder.rb,
lib/simple_qs/responce/successful_builder.rb

Defined Under Namespace

Modules: Request Classes: Message, Queue, Responce

Constant Summary collapse

VERSION =
'0.2'
API_VERSION =
'2009-02-01'
SQS_HOSTS =
{
  :us_east_1      => 'sqs.us-east-1.amazonaws.com',
  :us_west_1      => 'sqs.us-west-1.amazonaws.com',
  :eu_west_1      => 'sqs.eu-west-1.amazonaws.com',
  :ap_southeast_1 => 'sqs.ap-southeast-1.amazonaws.com'
}

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_key_idObject

Returns the value of attribute access_key_id.



22
23
24
# File 'lib/simple_qs.rb', line 22

def access_key_id
  @access_key_id
end

.account_idObject

Returns the value of attribute account_id.



27
28
29
# File 'lib/simple_qs.rb', line 27

def 
  @account_id
end

.secret_access_keyObject

Returns the value of attribute secret_access_key.



22
23
24
# File 'lib/simple_qs.rb', line 22

def secret_access_key
  @secret_access_key
end

Class Method Details

.hostObject



34
35
36
37
# File 'lib/simple_qs.rb', line 34

def host
  @host ||= :us_east_1
  SQS_HOSTS[@host]
end

.host=(value) ⇒ Object

Raises:

  • (ArgumentError)


29
30
31
32
# File 'lib/simple_qs.rb', line 29

def host=(value)
  raise ArgumentError, 'Expected value to be one of: :us_east_1, :us_west_1, :eu_west_1, :ap_southeast_1' unless SQS_HOSTS.key?(value)
  @host = value
end