class Spectacles::View

Public Class Methods

new(*) click to toggle source
# File lib/spectacles/view.rb, line 5
def self.new(*)
  raise NotImplementedError, "#{self} is an abstract class and cannot be instantiated."
end
table_exists?()
Alias for: view_exists?
view_exists?() click to toggle source
# File lib/spectacles/view.rb, line 9
def self.view_exists?
  self.connection.view_exists?(self.view_name)
end
Also aliased as: table_exists?

Public Instance Methods

==(comparison_object) click to toggle source
Calls superclass method
# File lib/spectacles/view.rb, line 18
def ==(comparison_object)
  super ||
    comparison_object.instance_of?(self.class) &&
    attributes.present? &&
    comparison_object.attributes == attributes
end
persisted?() click to toggle source
# File lib/spectacles/view.rb, line 25
def persisted?
  false
end
readonly?() click to toggle source
# File lib/spectacles/view.rb, line 29
def readonly?
  true
end