Class: Fogged::Resources::Encoder
- Inherits:
-
Object
- Object
- Fogged::Resources::Encoder
- Defined in:
- app/models/fogged/resources/encoder.rb
Class Method Summary collapse
Class Method Details
.for(resource) ⇒ Object
4 5 6 |
# File 'app/models/fogged/resources/encoder.rb', line 4 def self.for(resource) "Fogged::Resources::#{provider}Encoder".constantize.new(resource) end |
.provider ⇒ Object
8 9 10 |
# File 'app/models/fogged/resources/encoder.rb', line 8 def self.provider return :AWS if Fogged.provider == :aws end |