Method: Atlas::Box.create
- Defined in:
- lib/atlas/box.rb
.create(attr = {}) ⇒ Box
Create a new Box.
44 45 46 47 48 49 |
# File 'lib/atlas/box.rb', line 44 def self.create(attr = {}) tag = "#{attr.fetch(:username, '')}/#{attr[:name]}" box = new(tag, attr) box.save box end |