Class: Twitter::SearchResult
- Inherits:
-
Hash
- Object
- Hash
- Twitter::SearchResult
- Defined in:
- lib/twitter/search_result.rb
Class Method Summary collapse
-
.new_from_hash(hash) ⇒ Object
Creates an easier to work with hash from one with string-based keys.
Instance Method Summary collapse
- #created_at ⇒ Object
- #created_at=(val) ⇒ Object
- #from_user ⇒ Object
- #from_user=(val) ⇒ Object
- #from_user_id ⇒ Object
- #from_user_id=(val) ⇒ Object
- #id ⇒ Object
- #id=(val) ⇒ Object
- #iso_language_code ⇒ Object
- #iso_language_code=(val) ⇒ Object
- #profile_image_url ⇒ Object
- #profile_image_url=(val) ⇒ Object
- #text ⇒ Object
- #text=(val) ⇒ Object
- #to_user ⇒ Object
- #to_user=(val) ⇒ Object
- #to_user_id ⇒ Object
- #to_user_id=(val) ⇒ Object
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_at ⇒ Object
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_user ⇒ Object
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_id ⇒ Object
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 |
#id ⇒ Object
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_code ⇒ Object
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_url ⇒ Object
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 |
#text ⇒ Object
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_user ⇒ Object
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_id ⇒ Object
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 |