Class: FeastFast::Feast
- Inherits:
-
Object
- Object
- FeastFast::Feast
- Defined in:
- lib/feast_fast/feast.rb
Defined Under Namespace
Modules: STATUS
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(hsh = {:status => 0, :text => "No feast today"}) ⇒ Feast
constructor
A new instance of Feast.
- #to_s ⇒ Object
Constructor Details
#initialize(hsh = {:status => 0, :text => "No feast today"}) ⇒ Feast
Returns a new instance of Feast.
14 15 16 17 |
# File 'lib/feast_fast/feast.rb', line 14 def initialize(hsh={:status => 0, :text => "No feast today"}) @status = hsh[:status] @text = hsh[:text] end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/feast_fast/feast.rb', line 12 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
12 13 14 |
# File 'lib/feast_fast/feast.rb', line 12 def text @text end |