Module: CartoDB::Model::Schema

Included in:
Base
Defined in:
lib/cartodb-rb-client/cartodb/model/schema.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/cartodb-rb-client/cartodb/model/schema.rb', line 5

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#cartodb_table_exists?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/cartodb-rb-client/cartodb/model/schema.rb', line 115

def cartodb_table_exists?
  self.class.cartodb_table_exists?
end

#schema_synchronized?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/cartodb-rb-client/cartodb/model/schema.rb', line 111

def schema_synchronized?
  self.class.schema_synchronized? && cartodb_table_exists?
end