Sha256: 01f6334d7fb38bc9fe392c2057830a3496cc36153a973cfc357427f5a817ec13
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
module Avo module Fields class ExternalImageField < BaseField attr_reader :width attr_reader :height attr_reader :radius def initialize(id, **args, &block) super(id, **args, &block) @link_to_resource = args[:link_to_resource].present? ? args[:link_to_resource] : false @width = args[:width].present? ? args[:width] : 32 @height = args[:height].present? ? args[:height] : 32 @radius = args[:radius].present? ? args[:radius] : 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
avo-1.4.2 | lib/avo/fields/external_image_field.rb |
avo-1.4.1 | lib/avo/fields/external_image_field.rb |
avo-1.4.0 | lib/avo/fields/external_image_field.rb |