Class: Eaternet::Lives_1_0::FeedInfo
- Inherits:
-
ValidatedObject
- Object
- ValidatedObject
- Eaternet::Lives_1_0::FeedInfo
- Defined in:
- lib/eaternet/lives_1_0/feed_info.rb
Overview
Contains info about the feed itself.
Constant Summary collapse
- EMAIL_REGEX =
This regular expression for checking email addresses is based on one from one of Ryan Bates’ excellent screencasts. See http://railscasts.com/episodes/211-validations-in-rails-3
/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
- URL_REGEX =
%r{\Ahttps?:/}
Instance Attribute Summary collapse
-
#contact_email ⇒ String
Email address of the person to contact regarding invalid data in this feed.
-
#feed_date ⇒ Date
Date that the feed was generated.
-
#feed_version ⇒ String
Version of the LIVES specification used to generate this feed.
-
#municipality_name ⇒ String
Name of the municipality providing this feed.
-
#municipality_url ⇒ String
URL of the publishing municipality’s website.
Method Summary
Methods inherited from ValidatedObject
#check_validations!, #initialize
Constructor Details
This class inherits a constructor from Eaternet::ValidatedObject
Instance Attribute Details
#contact_email ⇒ String
Email address of the person to contact regarding invalid data in this feed.
54 55 56 |
# File 'lib/eaternet/lives_1_0/feed_info.rb', line 54 def contact_email @contact_email end |
#feed_date ⇒ Date
Date that the feed was generated.
20 21 22 |
# File 'lib/eaternet/lives_1_0/feed_info.rb', line 20 def feed_date @feed_date end |
#feed_version ⇒ String
Version of the LIVES specification used to generate this feed. For example ‘0.4.1’.
28 29 30 |
# File 'lib/eaternet/lives_1_0/feed_info.rb', line 28 def feed_version @feed_version end |
#municipality_name ⇒ String
Name of the municipality providing this feed. For example ‘San Francisco’ or ‘Multnomah County’.
36 37 38 |
# File 'lib/eaternet/lives_1_0/feed_info.rb', line 36 def municipality_name @municipality_name end |
#municipality_url ⇒ String
URL of the publishing municipality’s website.
43 44 45 |
# File 'lib/eaternet/lives_1_0/feed_info.rb', line 43 def municipality_url @municipality_url end |