Class: TheTwittHit::Properties
- Inherits:
-
Object
- Object
- TheTwittHit::Properties
- Defined in:
- lib/thetwitthit/properties.rb
Instance Method Summary collapse
-
#initialize ⇒ Properties
constructor
A new instance of Properties.
- #notes ⇒ Object
- #notes=(notes) ⇒ Object
- #title ⇒ Object
- #title=(title) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Properties
Returns a new instance of Properties.
3 4 5 |
# File 'lib/thetwitthit/properties.rb', line 3 def initialize() @hash = {} end |
Instance Method Details
#notes ⇒ Object
15 16 17 |
# File 'lib/thetwitthit/properties.rb', line 15 def notes @hash[:notes] end |
#notes=(notes) ⇒ Object
19 20 21 |
# File 'lib/thetwitthit/properties.rb', line 19 def notes=(notes) @hash[:notes] = notes end |
#title ⇒ Object
7 8 9 |
# File 'lib/thetwitthit/properties.rb', line 7 def title @hash[:title] end |
#title=(title) ⇒ Object
11 12 13 |
# File 'lib/thetwitthit/properties.rb', line 11 def title=(title) @hash[:title] = title end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/thetwitthit/properties.rb', line 23 def to_s (@hash.map{ |key, val| "#{key}:\"#{val}\"" }).join(', ') end |