Class: Google::Ajax::Feed::Entry
- Inherits:
-
Object
- Object
- Google::Ajax::Feed::Entry
- Defined in:
- lib/google_ajax_feed_api.rb
Overview
Google Ajax Feed Api
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:
46 47 48 |
# File 'lib/google_ajax_feed_api.rb', line 46 def initialize data #:nodoc: @data = data end |
Instance Method Details
#author ⇒ Object
The author for this specific entry
37 38 39 |
# File 'lib/google_ajax_feed_api.rb', line 37 def @data["author"] end |
#content ⇒ Object
The content of this entry
27 28 29 |
# File 'lib/google_ajax_feed_api.rb', line 27 def content @data["content"] end |
#created_at ⇒ Object
The publication date for this entry
42 43 44 |
# File 'lib/google_ajax_feed_api.rb', line 42 def created_at @data["publishedDate"] end |
#inspect ⇒ Object
:nodoc:
12 13 14 |
# File 'lib/google_ajax_feed_api.rb', line 12 def inspect # :nodoc: "<#Google::Ajax::Feed::Entry link=#{link} title=#{title}>" end |
#link ⇒ Object
The permalink for this entry
17 18 19 |
# File 'lib/google_ajax_feed_api.rb', line 17 def link @data["link"] end |
#snippet ⇒ Object
A snippet of this entries content
32 33 34 |
# File 'lib/google_ajax_feed_api.rb', line 32 def snippet @data["contentSnippet"] end |
#title ⇒ Object
The title for this entry
22 23 24 |
# File 'lib/google_ajax_feed_api.rb', line 22 def title @data["title"] end |