Class: Google::Ajax::Feed::Entry
- Inherits:
-
Object
- Object
- Google::Ajax::Feed::Entry
- Defined in:
- lib/google_ajax_feed_api/entry.rb
Instance Method Summary collapse
-
#author ⇒ Object
The author for this specific entry.
-
#content ⇒ Object
The content of this entry.
-
#created_at ⇒ Object
The publication date for this entry.
-
#initialize(data) ⇒ Entry
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
-
#link ⇒ Object
The permalink for this entry.
-
#snippet ⇒ Object
A snippet of this entries content.
-
#title ⇒ Object
The title for this entry.
Constructor Details
#initialize(data) ⇒ Entry
:nodoc:
39 40 41 |
# File 'lib/google_ajax_feed_api/entry.rb', line 39 def initialize data #:nodoc: @data = data end |
Instance Method Details
#author ⇒ Object
The author for this specific entry
30 31 32 |
# File 'lib/google_ajax_feed_api/entry.rb', line 30 def @data["author"] end |
#content ⇒ Object
The content of this entry
20 21 22 |
# File 'lib/google_ajax_feed_api/entry.rb', line 20 def content @data["content"] end |
#created_at ⇒ Object
The publication date for this entry
35 36 37 |
# File 'lib/google_ajax_feed_api/entry.rb', line 35 def created_at @data["publishedDate"] end |
#inspect ⇒ Object
:nodoc:
5 6 7 |
# File 'lib/google_ajax_feed_api/entry.rb', line 5 def inspect # :nodoc: "<#Google::Ajax::Feed::Entry link=#{link} title=#{title}>" end |
#link ⇒ Object
The permalink for this entry
10 11 12 |
# File 'lib/google_ajax_feed_api/entry.rb', line 10 def link @data["link"] end |
#snippet ⇒ Object
A snippet of this entries content
25 26 27 |
# File 'lib/google_ajax_feed_api/entry.rb', line 25 def snippet @data["contentSnippet"] end |
#title ⇒ Object
The title for this entry
15 16 17 |
# File 'lib/google_ajax_feed_api/entry.rb', line 15 def title @data["title"] end |