class Eaternet::Lives_1_0::Business

A food service establishment, e.g. a restaurant.

@!attribute [rw] business_id

Unique identifier for the business. For many cities,
this may be the license number. Required.
@return [String]

@!attribute [rw] name

Common name of the business. Required.
@return [String]

@!attribute [rw] address

Street address of the business. For example: 706 Mission St.
Required.
@return [String]

@!attribute [rw] city

City of the business. This field must be included if the
file contains businesses from multiple cities.
@return [String]

@!attribute [rw] state

State or province for the business. In the U.S. this should
be the two-letter code for the state. Optional.
@return [String]

@!attribute [rw] postal_code

Zip code or other postal code. Optional.
@return [String]

@!attribute [rw] latitude

Latitude of the business. This field must be a valid WGS 84
latitude. For example: 37.7859547. Optional.
@return [Float]

@!attribute [rw] longitude

Longitude of the business. This field must be a valid WGS 84
longitude. For example: -122.4024658. Optional.
@return [Float]

@!attribute [rw] phone_number

Phone number for a business including country specific dialing
information. For example: +14159083801
@return [String]

@see www.yelp.com/healthscores#businesses LIVES / Business

specification

Attributes

address[RW]
business_id[RW]
city[RW]
latitude[RW]
longitude[RW]
name[RW]
phone_number[RW]
postal_code[RW]
state[RW]

Public Instance Methods

==(other) click to toggle source
# File lib/eaternet/lives_1_0/business.rb, line 89
def ==(other)
  business_id == other.business_id
end
eql?(other) click to toggle source
# File lib/eaternet/lives_1_0/business.rb, line 93
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/eaternet/lives_1_0/business.rb, line 97
def hash
  business_id.hash
end
to_s() click to toggle source

@return [String]

# File lib/eaternet/lives_1_0/business.rb, line 102
def to_s
  "Business #{business_id}"
end