Class: Kamifusen::Processor
- Inherits:
-
Object
- Object
- Kamifusen::Processor
- Defined in:
- lib/kamifusen/processor.rb
Instance Attribute Summary collapse
-
#active_storage_direct_url ⇒ Object
readonly
Returns the value of attribute active_storage_direct_url.
-
#variant ⇒ Object
readonly
Returns the value of attribute variant.
Instance Method Summary collapse
-
#initialize(variant, active_storage_direct_url = false) ⇒ Processor
constructor
A new instance of Processor.
- #url ⇒ Object
Constructor Details
#initialize(variant, active_storage_direct_url = false) ⇒ Processor
Returns a new instance of Processor.
5 6 7 8 |
# File 'lib/kamifusen/processor.rb', line 5 def initialize(variant, active_storage_direct_url = false) @variant = variant @active_storage_direct_url = active_storage_direct_url end |
Instance Attribute Details
#active_storage_direct_url ⇒ Object (readonly)
Returns the value of attribute active_storage_direct_url.
3 4 5 |
# File 'lib/kamifusen/processor.rb', line 3 def active_storage_direct_url @active_storage_direct_url end |
#variant ⇒ Object (readonly)
Returns the value of attribute variant.
3 4 5 |
# File 'lib/kamifusen/processor.rb', line 3 def variant @variant end |
Instance Method Details
#url ⇒ Object
10 11 12 13 |
# File 'lib/kamifusen/processor.rb', line 10 def url Kamifusen.keycdn.present? ? keycdn_url : active_storage_url end |