Class: Datapimp::Sync::CloudfrontDistribution
- Inherits:
-
Object
- Object
- Datapimp::Sync::CloudfrontDistribution
- Includes:
- Logging
- Defined in:
- lib/datapimp/sync/cloudfront_distribution.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
Instance Method Summary collapse
- #cloudfront ⇒ Object
-
#initialize(options = {}) ⇒ CloudfrontDistribution
constructor
A new instance of CloudfrontDistribution.
- #method_missing(meth, *args, &block) ⇒ Object
Methods included from Logging
Constructor Details
#initialize(options = {}) ⇒ CloudfrontDistribution
Returns a new instance of CloudfrontDistribution.
8 9 10 |
# File 'lib/datapimp/sync/cloudfront_distribution.rb', line 8 def initialize(={}) @bucket = .fetch(:bucket) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
18 19 20 |
# File 'lib/datapimp/sync/cloudfront_distribution.rb', line 18 def method_missing(meth, *args, &block) cloudfront && cloudfront.send(meth, *args, &block) end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
6 7 8 |
# File 'lib/datapimp/sync/cloudfront_distribution.rb', line 6 def bucket @bucket end |