Class: StoryEntry

Inherits:
Object
  • Object
show all
Includes:
SAXMachine
Defined in:
lib/inews_client/story_entry.rb

Instance Method Summary collapse

Instance Method Details

#field_contentObject



18
19
20
# File 'lib/inews_client/story_entry.rb', line 18

def field_content
  self.app_id
end

#fired?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/inews_client/story_entry.rb', line 10

def fired?
  self.air_date != "0" && self.air_date 
end

#idObject



14
15
16
# File 'lib/inews_client/story_entry.rb', line 14

def id
  app_id.split('-').last if app_id
end