Sha256: f30f99293e22e0d78990f184494ea4d5685cd6bf66097a720c64cedf1deeb691

Contents?: true

Size: 342 Bytes

Versions: 8

Compression:

Stored size: 342 Bytes

Contents

module Reactor
  module Attributes
    class LinkListFromAccessor
      def initialize(obj, attribute)
        self.obj       = obj
        self.attribute = attribute
      end

      def call
        obj[attribute.to_sym] || RailsConnector::LinkList.new([])
      end

      protected

      attr_accessor :obj, :attribute
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
infopark_reactor-1.29.1 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.29.0 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.28.0 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.27.0.rc10 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.27.0.rc9 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.27.0.rc8 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.27.0.rc7 lib/reactor/attributes/link_list_from_accessor.rb
infopark_reactor-1.27.0.rc4 lib/reactor/attributes/link_list_from_accessor.rb