Class: Brewser::Model
- Inherits:
-
Object
show all
- Includes:
- Units, DataMapper::Resource
- Defined in:
- lib/brewser/model/base.rb
Direct Known Subclasses
Additive, Batch, Fermentable, FermentationSchedule, FermentationStep, Hop, MashSchedule, MashStep, Recipe, Style, WaterProfile, Yeast
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_name ⇒ Object
16
|
# File 'lib/brewser/model/base.rb', line 16
def self.default_repository_name;:default;end
|
Instance Method Details
#as_beerxml ⇒ Object
25
26
27
|
# File 'lib/brewser/model/base.rb', line 25
def as_beerxml
BeerXML2.serialize(self)
end
|
#as_brewson ⇒ Object
21
22
23
|
# File 'lib/brewser/model/base.rb', line 21
def as_brewson
BrewSON.serialize(self)
end
|