Class: Fog::CDN::AWS::StreamingDistribution
- Includes:
- DistributionHelper
- Defined in:
- lib/fog/aws/models/cdn/streaming_distribution.rb
Constant Summary collapse
- CONFIG =
items part of DistributionConfig
[ :caller_reference, :cname, :comment, :enabled, :logging ]
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(new_attributes = {}) ⇒ StreamingDistribution
constructor
A new instance of StreamingDistribution.
- #save ⇒ Object
Methods included from DistributionHelper
#custom_origin?, #destroy, #disable, #disabled?, #enable, #enabled?, #ready?
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(new_attributes = {}) ⇒ StreamingDistribution
Returns a new instance of StreamingDistribution.
28 29 30 |
# File 'lib/fog/aws/models/cdn/streaming_distribution.rb', line 28 def initialize(new_attributes = {}) super(distribution_config_to_attributes(new_attributes)) end |
Instance Method Details
#save ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'lib/fog/aws/models/cdn/streaming_distribution.rb', line 32 def save requires_one :s3_origin = response = identity ? put_distribution_config(identity, etag, ) : post_distribution() etag = response.headers['ETag'] merge_attributes(response.body) true end |