Class: GreenButtonData::Parser::Feed
- Inherits:
-
Object
- Object
- GreenButtonData::Parser::Feed
show all
- Includes:
- Utilities, SAXMachine
- Defined in:
- lib/green-button-data/parser/feed.rb
Instance Method Summary
collapse
Methods included from Utilities
#attributes_to_hash, #class_from_name, #epoch_to_time, #first_sunday_of, #last_weekday_of, #normalize_epoch, #nth_weekday_of, #parse_datetime, #weekday_offset
Instance Method Details
#feed_url ⇒ Object
24
25
26
|
# File 'lib/green-button-data/parser/feed.rb', line 24
def feed_url
@feed_url ||= links.first
end
|
#id ⇒ Object
9
10
11
|
# File 'lib/green-button-data/parser/feed.rb', line 9
def id
@feed_id ||= @feed_url
end
|
#updated=(val) ⇒ Object
32
33
34
|
# File 'lib/green-button-data/parser/feed.rb', line 32
def updated=(val)
@updated = parse_datetime val
end
|
#url ⇒ Object
20
21
22
|
# File 'lib/green-button-data/parser/feed.rb', line 20
def url
@url || (links - [feed_url]).last || links.last
end
|