Class: FeastFast::Fast
- Inherits:
-
Object
- Object
- FeastFast::Fast
- Defined in:
- lib/feast_fast/fast.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
- #==(fast) ⇒ Object
-
#initialize(hsh = {:status => STATUS::NO, :text => nil}) ⇒ Fast
constructor
A new instance of Fast.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
12 13 14 |
# File 'lib/feast_fast/fast.rb', line 12 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
12 13 14 |
# File 'lib/feast_fast/fast.rb', line 12 def text @text end |
Instance Method Details
#==(fast) ⇒ Object
23 24 25 |
# File 'lib/feast_fast/fast.rb', line 23 def == fast self.status == fast.status && self.text == fast.text end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/feast_fast/fast.rb', line 19 def to_s @text end |