Class: AwsSqsMoniter::Aws::Builder::ApplicationPolicyBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_sqs_moniter/aws/builder/application_policy_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ ApplicationPolicyBuilder

Returns a new instance of ApplicationPolicyBuilder.



5
6
7
8
# File 'lib/aws_sqs_moniter/aws/builder/application_policy_builder.rb', line 5

def initialize logger
  @logger = logger
  @arns = Arns.new
end

Instance Method Details

#buildObject



10
11
12
13
14
# File 'lib/aws_sqs_moniter/aws/builder/application_policy_builder.rb', line 10

def build
  file = Tempfile.create ['aws-application-policy', '.json']
  file.write application_policy
  @logger.info application_policy_written_to: file.path
end