Class: Twitter::SearchResult

Inherits:
Hash
  • Object
show all
Defined in:
lib/twitter/search_result.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_hash(hash) ⇒ Object

Creates an easier to work with hash from one with string-based keys



6
7
8
# File 'lib/twitter/search_result.rb', line 6

def self.new_from_hash(hash)
  new.merge!(hash)
end

Instance Method Details

#created_atObject



10
11
12
# File 'lib/twitter/search_result.rb', line 10

def created_at
  self['created_at']
end

#created_at=(val) ⇒ Object



14
15
16
# File 'lib/twitter/search_result.rb', line 14

def created_at=(val)
  self['created_at'] = val
end

#from_userObject



18
19
20
# File 'lib/twitter/search_result.rb', line 18

def from_user
  self['from_user']
end

#from_user=(val) ⇒ Object



22
23
24
# File 'lib/twitter/search_result.rb', line 22

def from_user=(val)
  self['from_user'] = val
end

#from_user_idObject



26
27
28
# File 'lib/twitter/search_result.rb', line 26

def from_user_id
  self['from_user_id']
end

#from_user_id=(val) ⇒ Object



30
31
32
# File 'lib/twitter/search_result.rb', line 30

def from_user_id=(val)
  self['from_user_id'] = val
end

#idObject



34
35
36
# File 'lib/twitter/search_result.rb', line 34

def id
  self['id']
end

#id=(val) ⇒ Object



38
39
40
# File 'lib/twitter/search_result.rb', line 38

def id=(val)
  self['id'] = val
end

#iso_language_codeObject



42
43
44
# File 'lib/twitter/search_result.rb', line 42

def iso_language_code
  self['iso_language_code']
end

#iso_language_code=(val) ⇒ Object



46
47
48
# File 'lib/twitter/search_result.rb', line 46

def iso_language_code=(val)
  self['iso_language_code'] = val
end

#profile_image_urlObject



50
51
52
# File 'lib/twitter/search_result.rb', line 50

def profile_image_url
  self['profile_image_url']
end

#profile_image_url=(val) ⇒ Object



54
55
56
# File 'lib/twitter/search_result.rb', line 54

def profile_image_url=(val)
  self['profile_image_url'] = val
end

#textObject



58
59
60
# File 'lib/twitter/search_result.rb', line 58

def text
  self['text']
end

#text=(val) ⇒ Object



62
63
64
# File 'lib/twitter/search_result.rb', line 62

def text=(val)
  self['text'] = val
end

#to_userObject



66
67
68
# File 'lib/twitter/search_result.rb', line 66

def to_user
  self['to_user']
end

#to_user=(val) ⇒ Object



70
71
72
# File 'lib/twitter/search_result.rb', line 70

def to_user=(val)
  self['to_user'] = val
end

#to_user_idObject



74
75
76
# File 'lib/twitter/search_result.rb', line 74

def to_user_id
  self['to_user_id']
end

#to_user_id=(val) ⇒ Object



78
79
80
# File 'lib/twitter/search_result.rb', line 78

def to_user_id=(val)
  self['to_user_id'] = val
end