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

business_id[RW]

Unique identifier of the business for which this inspection was done.

@required Yes @return [String]

date[RW]

Date of the inspection.

@required Yes @return [Date]

description[RW]

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]

score[RW]

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.
type[RW]

String representing the type of inspection. Must be (initial, routine, followup, complaint).

@required No @return [String]

Public Instance Methods

==(other) click to toggle source
# File lib/eaternet/lives_1_0/inspection.rb, line 69
def ==(other)
  business_id == other.business_id && date == other.date
end
eql?(other) click to toggle source
# File lib/eaternet/lives_1_0/inspection.rb, line 73
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/eaternet/lives_1_0/inspection.rb, line 77
def hash
  "#{business_id} #{date}".hash
end
to_s() click to toggle source

@return [String]

# File lib/eaternet/lives_1_0/inspection.rb, line 65
def to_s
  "Inspection #{business_id}/#{date}/#{score}"
end