class ActiveRecord::ConnectionAdapters::Hanaclient::TypeMetadata

Public Class Methods

new(type_metadata) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/hanaclient/type_metadata.rb, line 5
def initialize(type_metadata)
  super(type_metadata)
  @type_metadata = type_metadata
end

Public Instance Methods

==(other) click to toggle source
# File lib/active_record/connection_adapters/hanaclient/type_metadata.rb, line 10
def ==(other)
  other.is_a?(Hanaclient::TypeMetadata) &&
    attributes_for_hash == other.attributes_for_hash
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/active_record/connection_adapters/hanaclient/type_metadata.rb, line 16
def hash
  attributes_for_hash.hash
end

Protected Instance Methods

attributes_for_hash() click to toggle source
# File lib/active_record/connection_adapters/hanaclient/type_metadata.rb, line 22
def attributes_for_hash
  [self.class, @type_metadata]
end