Class: SQSPermission
- Inherits:
-
Object
- Object
- SQSPermission
- Includes:
- SQS::Permissions
- Defined in:
- lib/sqs_async/sqs_permission.rb
Instance Attribute Summary collapse
-
#aws_account_id ⇒ Object
Returns the value of attribute aws_account_id.
-
#permission ⇒ Object
Returns the value of attribute permission.
Instance Method Summary collapse
Methods included from SQS::Permissions
all, change_message_visibility, delete_message, get_queue_attributes, receive_message, send_message
Instance Attribute Details
#aws_account_id ⇒ Object
Returns the value of attribute aws_account_id.
31 32 33 |
# File 'lib/sqs_async/sqs_permission.rb', line 31 def aws_account_id @aws_account_id end |
#permission ⇒ Object
Returns the value of attribute permission.
31 32 33 |
# File 'lib/sqs_async/sqs_permission.rb', line 31 def @permission end |
Instance Method Details
#to_params(ordinal = 1) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/sqs_async/sqs_permission.rb', line 33 def to_params(ordinal=1) { "Label" => "#{aws_account_id}-#{.to_s}", "AWSAccountId.#{ordinal}" => aws_account_id, "ActionName.#{ordinal}" => .to_s } end |