Class: Cadooz::Mutable::GreetingCard
- Inherits:
-
Object
- Object
- Cadooz::Mutable::GreetingCard
- Includes:
- Mixins
- Defined in:
- lib/cadooz/models/mutable/greeting_card.rb
Instance Attribute Summary collapse
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ GreetingCard
constructor
A new instance of GreetingCard.
Methods included from Mixins
#cadooz_class, #default_value_for_nil, #instance_variables_empty?, #serialize
Constructor Details
#initialize(args = {}) ⇒ GreetingCard
Returns a new instance of GreetingCard.
6 7 8 9 10 11 |
# File 'lib/cadooz/models/mutable/greeting_card.rb', line 6 def initialize(args={}) @subject = args[:subject] @text = args[:text] default_value_for_nil end |
Instance Attribute Details
#subject ⇒ Object
Returns the value of attribute subject.
4 5 6 |
# File 'lib/cadooz/models/mutable/greeting_card.rb', line 4 def subject @subject end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/cadooz/models/mutable/greeting_card.rb', line 4 def text @text end |