Class: Google::Ajax::Feed::Entry

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

Overview

Google Ajax Feed Api

Instance Method Summary collapse

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

#authorObject

The author for this specific entry



37
38
39
# File 'lib/google_ajax_feed_api.rb', line 37

def author
  @data["author"]
end

#contentObject

The content of this entry



27
28
29
# File 'lib/google_ajax_feed_api.rb', line 27

def content
  @data["content"]
end

#created_atObject

The publication date for this entry



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

def created_at
  @data["publishedDate"]
end

#inspectObject

: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

The permalink for this entry



17
18
19
# File 'lib/google_ajax_feed_api.rb', line 17

def link
  @data["link"]
end

#snippetObject

A snippet of this entries content



32
33
34
# File 'lib/google_ajax_feed_api.rb', line 32

def snippet
  @data["contentSnippet"]
end

#titleObject

The title for this entry



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

def title
  @data["title"]
end