Class: GreenButtonData::Parser::Entry

Inherits:
Object
  • Object
show all
Includes:
Utilities, SAXMachine
Defined in:
lib/green-button-data/parser/entry.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

#idObject



9
10
11
# File 'lib/green-button-data/parser/entry.rb', line 9

def id
  @entry_id ||= @self
end

#publishedObject



22
23
24
# File 'lib/green-button-data/parser/entry.rb', line 22

def published
  @published ||= @updated
end

#published=(val) ⇒ Object



26
27
28
# File 'lib/green-button-data/parser/entry.rb', line 26

def published=(val)
  @published = parse_datetime val
end

#updated=(val) ⇒ Object



33
34
35
# File 'lib/green-button-data/parser/entry.rb', line 33

def updated=(val)
  @updated = parse_datetime val
end