Module: Card::Director::CardClass

Included in:
Card
Defined in:
card/lib/card/director/card_class.rb

Overview

director-related Card class methods

Instance Method Summary collapse

Instance Method Details

#create(opts) ⇒ Object



11
12
13
14
15
# File 'card/lib/card/director/card_class.rb', line 11

def create opts
  card = Card.new opts
  card.save
  card
end

#create!(opts) ⇒ Object



5
6
7
8
9
# File 'card/lib/card/director/card_class.rb', line 5

def create! opts
  card = Card.new opts
  card.save!
  card
end