Class: Muve::Place

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/muve/place.rb

Instance Method Summary collapse

Methods included from Model

#==, #attributes, #attributes=, connection, #connection, connection=, #database, database, database=, #destroy, #destroyed?, handler, #id, included, init, #initialize, #invalid?, #new_record?, #persisted?, #reload, #save, #save!, #to_hash, #to_param

Methods included from Helper

symbolize_keys

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/muve/place.rb', line 7

def valid?
  return false unless name
  return false unless location.kind_of?(Muve::Location) && location.valid?
  true
end