Sha256: c8dc3448b6900ee7dd633109f2cb520f6076d3879c122047f3d3dd29ee206756

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

module RailsConnector

class BasicWidget
  include AttributeContent

  def self.type_computer
    @_type_computer ||= TypeComputer.new(RailsConnector::BasicWidget, ::Widget)
  end

  def self.reset_type_computer!
    @_type_computer = nil
  end

  attr_accessor :id, :obj

  alias_method :initialize, :update_data

  def obj_class
    data_from_cms.value_of('_obj_class')
  end

  def ==(other)
    other.respond_to?(:obj) && obj == other.obj && other.respond_to?(:id) && id == other.id
  end

  def eql?(other)
    self == other
  end

  def hash
    (id + obj.id).hash
  end
end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.9.5 lib/rails_connector/basic_widget.rb