Class: Ideapad::Idea
- Inherits:
-
Object
- Object
- Ideapad::Idea
- Defined in:
- lib/ideapad/idea.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(idea_text) ⇒ Idea
constructor
A new instance of Idea.
Constructor Details
#initialize(idea_text) ⇒ Idea
Returns a new instance of Idea.
7 8 9 10 |
# File 'lib/ideapad/idea.rb', line 7 def initialize(idea_text) @text = idea_text.strip @timestamp = Time.now end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/ideapad/idea.rb', line 4 def text @text end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/ideapad/idea.rb', line 5 def @timestamp end |