Class: Brewser::Model

Inherits:
Object
  • Object
show all
Includes:
Units, DataMapper::Resource
Defined in:
lib/brewser/model/base.rb

Defined Under Namespace

Modules: Units

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.auto_migrate_down!(rep) ⇒ Object



17
# File 'lib/brewser/model/base.rb', line 17

def self.auto_migrate_down!(rep);end

.auto_migrate_up!(rep) ⇒ Object



18
# File 'lib/brewser/model/base.rb', line 18

def self.auto_migrate_up!(rep);end

.auto_upgrade!(rep) ⇒ Object



19
# File 'lib/brewser/model/base.rb', line 19

def self.auto_upgrade!(rep);end

.default_repository_nameObject



16
# File 'lib/brewser/model/base.rb', line 16

def self.default_repository_name;:default;end

Instance Method Details

#as_beerxmlObject



25
26
27
# File 'lib/brewser/model/base.rb', line 25

def as_beerxml
  BeerXML2.serialize(self)
end

#as_brewsonObject



21
22
23
# File 'lib/brewser/model/base.rb', line 21

def as_brewson
  BrewSON.serialize(self)
end