Sha256: f5c8552f03c5784bc05fb349a6d9ba0b54c4d9480d813f3e5602ccb1c64ea184
Contents?: true
Size: 564 Bytes
Versions: 5
Compression:
Stored size: 564 Bytes
Contents
module Avo module Fields class ExternalImageField < BaseField attr_reader :width attr_reader :height attr_reader :radius attr_reader :link_to_resource 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
5 entries across 5 versions & 1 rubygems