Class: Fogged::Resources::AWSEncoder
- Inherits:
-
Object
- Object
- Fogged::Resources::AWSEncoder
- Defined in:
- app/models/fogged/resources/aws_encoder.rb
Instance Method Summary collapse
- #encode!(inline = false) ⇒ Object
-
#initialize(resource) ⇒ AWSEncoder
constructor
A new instance of AWSEncoder.
Constructor Details
#initialize(resource) ⇒ AWSEncoder
Returns a new instance of AWSEncoder.
4 5 6 |
# File 'app/models/fogged/resources/aws_encoder.rb', line 4 def initialize(resource) @resource = resource end |
Instance Method Details
#encode!(inline = false) ⇒ Object
8 9 10 11 |
# File 'app/models/fogged/resources/aws_encoder.rb', line 8 def encode!(inline = false) encode_video if @resource.video? encode_image(inline) if @resource.image? end |