Class: Syndication::Atom::Entry

Inherits:
Container show all
Includes:
Google
Defined in:
lib/syndication/atom.rb,
lib/syndication/google.rb

Overview

An entry within an Atom feed.

Instance Attribute Summary (collapse)

Attributes included from Google

#gd_where

Instance Method Summary (collapse)

Methods included from Google

#gd_when, #gd_when=

Methods inherited from Container

#initialize, #parse_date, #store, #store_category, #strip, #tag2method, #tag_end, #tag_start

Constructor Details

This class inherits a constructor from Syndication::Container

Instance Attribute Details

- (Object) author

Author of entry as a Person object.



398
399
400
# File 'lib/syndication/atom.rb', line 398

def author
  @author
end

- (Object) categories (readonly)

Array of taxonomic categories for feed.



404
405
406
# File 'lib/syndication/atom.rb', line 404

def categories
  @categories
end

- (Object) content

Content element as Atom::Content object



412
413
414
# File 'lib/syndication/atom.rb', line 412

def content
  @content
end

- (Object) contributors (readonly)

Array of Person objects representing contributors.



408
409
410
# File 'lib/syndication/atom.rb', line 408

def contributors
  @contributors
end

- (Object) created

The DateTime of creation (Atom 0.3, obsolete)



469
470
471
# File 'lib/syndication/atom.rb', line 469

def created
  parse_date(@created)
end

- (Object) id

Globally unique ID of Entry.



402
403
404
# File 'lib/syndication/atom.rb', line 402

def id
  @id
end

Array of Link objects.



406
407
408
# File 'lib/syndication/atom.rb', line 406

def links
  @links
end

- (Object) published

The DateTime of publication



464
465
466
# File 'lib/syndication/atom.rb', line 464

def published
  parse_date(@published)
end

- (Object) rights

Copyright or other rights information.



400
401
402
# File 'lib/syndication/atom.rb', line 400

def rights
  @rights
end

- (Object) source

Source feed metadata as Feed object.



392
393
394
# File 'lib/syndication/atom.rb', line 392

def source
  @source
end

- (Object) summary

Summary of content.



390
391
392
# File 'lib/syndication/atom.rb', line 390

def summary
  @summary
end

- (Object) title

Title of entry.



388
389
390
# File 'lib/syndication/atom.rb', line 388

def title
  @title
end

- (Object) updated

The last update DateTime



459
460
461
# File 'lib/syndication/atom.rb', line 459

def updated
  parse_date(@updated)
end

Instance Method Details

- (Object) category=(obj)

Add a Category object to the entry



435
436
437
438
439
440
# File 'lib/syndication/atom.rb', line 435

def category=(obj)
  if !defined? @categories
    @categories = Array.new
  end
  @categories.push(obj)
end

- (Object) contributor=(obj)

Add a Person to the entry to represent a contributor



443
444
445
446
447
448
# File 'lib/syndication/atom.rb', line 443

def contributor=(obj)
  if !defined? @contributors
    @contributors = Array.new
  end
  @contributors.push(obj)
end

- (Object) copyright=(x)

For Atom 0.3 compatibility



425
426
427
# File 'lib/syndication/atom.rb', line 425

def copyright=(x)
  @rights = x
end

- (Object) issued=(x)

For Atom 0.3 compatibility



420
421
422
# File 'lib/syndication/atom.rb', line 420

def issued=(x)
  @published = x
end

- (Object) link=(obj)

Add a Link to the entry



451
452
453
454
455
456
# File 'lib/syndication/atom.rb', line 451

def link=(obj)
  if !defined? @links
    @links = Array.new
  end
  @links.push(obj)
end

- (Object) modified=(x)

For Atom 0.3 compatibility



415
416
417
# File 'lib/syndication/atom.rb', line 415

def modified=(x)
  @updated = x
end