Class: TheTwittHit::Properties

Inherits:
Object
  • Object
show all
Defined in:
lib/thetwitthit/properties.rb

Instance Method Summary collapse

Constructor Details

#initializeProperties

Returns a new instance of Properties.



3
4
5
# File 'lib/thetwitthit/properties.rb', line 3

def initialize()
  @hash = {}
end

Instance Method Details

#notesObject



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

#titleObject



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_sObject



23
24
25
# File 'lib/thetwitthit/properties.rb', line 23

def to_s
  (@hash.map{ |key, val| "#{key}:\"#{val}\"" }).join(', ')
end