Class: Eaternet::Lives_1_0::Business

Inherits:
ValidatedObject show all
Defined in:
lib/eaternet/lives_1_0.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ValidatedObject

#initialize

Constructor Details

This class inherits a constructor from Eaternet::Lives_1_0::ValidatedObject

Instance Attribute Details

#addressObject

Returns the value of attribute address


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def address
  @address
end

#business_idObject

Returns the value of attribute business_id


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def business_id
  @business_id
end

#cityObject

Returns the value of attribute city


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def city
  @city
end

#latitudeObject

Returns the value of attribute latitude


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def name
  @name
end

#phone_numberObject

Returns the value of attribute phone_number


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def phone_number
  @phone_number
end

#postal_codeObject

Returns the value of attribute postal_code


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state


72
73
74
# File 'lib/eaternet/lives_1_0.rb', line 72

def state
  @state
end

Instance Method Details

#==(other) ⇒ Object


96
97
98
# File 'lib/eaternet/lives_1_0.rb', line 96

def ==(other)
  @business_id == other.business_id
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)

100
101
102
# File 'lib/eaternet/lives_1_0.rb', line 100

def eql?(other)
  self == other
end

#hashObject


104
105
106
# File 'lib/eaternet/lives_1_0.rb', line 104

def hash
  @business_id.hash
end

#to_sString

:nodoc:

Returns:

  • (String)

110
111
112
# File 'lib/eaternet/lives_1_0.rb', line 110

def to_s
  "Business #{@business_id}"
end