class Eaternet::Lives_1_0::Inspection
Information about an inspectors’ visit to a businesses.
@see www.yelp.com/healthscores#inspections LIVES / Inspections
specification
Constants
- ZERO_TO_ONE_HUNDRED_AND_BLANK
Attributes
Unique identifier of the business for which this inspection was done.
@required Yes @return [String]
Date of the inspection.
@required Yes @return [Date]
Single line description containing details on the outcome of an inspection. Use of this field is only encouraged if no violations are provided.
@required No @return [String]
Inspection
score on a 0-100 scale. 100 is the highest score. This column must always be present in inspections.csv. However, it can be safely left blank for inspection rows that don’t have an associated score. (For example, some municipalities don’t associate a follow-up inspection with a score.)
@required No @return [Integer] if it's a scored inspection @return [String] if it's an un-scored inspection, then the return
value will be an empty string.
String representing the type of inspection. Must be (initial, routine, followup, complaint).
@required No @return [String]
Public Instance Methods
# File lib/eaternet/lives_1_0/inspection.rb, line 69 def ==(other) business_id == other.business_id && date == other.date end
# File lib/eaternet/lives_1_0/inspection.rb, line 73 def eql?(other) self == other end
# File lib/eaternet/lives_1_0/inspection.rb, line 77 def hash "#{business_id} #{date}".hash end
@return [String]
# File lib/eaternet/lives_1_0/inspection.rb, line 65 def to_s "Inspection #{business_id}/#{date}/#{score}" end