Class: AwsSqsMoniter::Aws::Builder::ApplicationPolicyBuilder
- Inherits:
-
Object
- Object
- AwsSqsMoniter::Aws::Builder::ApplicationPolicyBuilder
- Defined in:
- lib/aws_sqs_moniter/aws/builder/application_policy_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(logger) ⇒ ApplicationPolicyBuilder
constructor
A new instance of ApplicationPolicyBuilder.
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
#build ⇒ Object
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 |