Module: Koujou::ActiveRecordExtensions::Builder::ClassMethods
- Defined in:
- lib/koujou/builder.rb
Overview
:nodoc:
Instance Method Summary collapse
- #koujou(create = true, attributes = nil) ⇒ Object
- #koujou_build(attributes = nil) ⇒ Object
- #koujou_create(attributes = nil) ⇒ Object
Instance Method Details
#koujou(create = true, attributes = nil) ⇒ Object
11 12 13 |
# File 'lib/koujou/builder.rb', line 11 def koujou(create = true, attributes = nil) generate_instance(create, attributes) end |
#koujou_build(attributes = nil) ⇒ Object
15 16 17 |
# File 'lib/koujou/builder.rb', line 15 def koujou_build(attributes = nil) koujou(false, attributes) end |
#koujou_create(attributes = nil) ⇒ Object
19 20 21 |
# File 'lib/koujou/builder.rb', line 19 def koujou_create(attributes = nil) koujou(true, attributes) end |