Sha256: e30d81f896356054b1a3d7a5b656e043c3b0f0eafd8fc2d217a927915a8ea954

Contents?: true

Size: 392 Bytes

Versions: 18

Compression:

Stored size: 392 Bytes

Contents

module Dugway
  module Drops
    class OptionGroupDrop < BaseDrop

      def id
        source['id']
      end

      def name
        source['name']
      end

      def position
        source['position']
      end

      def values
        @values ||= source['values'].present? ?
          source['values'].map { |value| OptionGroupValueDrop.new(value) } : []
      end

    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dugway-1.0.14 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.13 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.12 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.10 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.9 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.8 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.7 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.6 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.5 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.4 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.3 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.2 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.1 lib/dugway/liquid/drops/option_group_drop.rb
dugway-1.0.0 lib/dugway/liquid/drops/option_group_drop.rb
dugway-0.12.3 lib/dugway/liquid/drops/option_group_drop.rb
dugway-0.12.2 lib/dugway/liquid/drops/option_group_drop.rb
dugway-0.12.1 lib/dugway/liquid/drops/option_group_drop.rb
dugway-0.12.0 lib/dugway/liquid/drops/option_group_drop.rb