Class: Eaternet::Lives_1_0::Inspection

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

Overview

Constant Summary collapse

ZERO_TO_ONE_HUNDRED_AND_BLANK =
(0..100).to_a + ['']

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

#business_idObject

Returns the value of attribute business_id


118
119
120
# File 'lib/eaternet/lives_1_0.rb', line 118

def business_id
  @business_id
end

#dateObject

Returns the value of attribute date


118
119
120
# File 'lib/eaternet/lives_1_0.rb', line 118

def date
  @date
end

#descriptionObject

Returns the value of attribute description


118
119
120
# File 'lib/eaternet/lives_1_0.rb', line 118

def description
  @description
end

#scoreObject

Returns the value of attribute score


118
119
120
# File 'lib/eaternet/lives_1_0.rb', line 118

def score
  @score
end

#typeObject

Returns the value of attribute type


118
119
120
# File 'lib/eaternet/lives_1_0.rb', line 118

def type
  @type
end

Instance Method Details

#to_sObject


139
140
141
# File 'lib/eaternet/lives_1_0.rb', line 139

def to_s
  "Inspection #{@business_id}/#{@date}/#{@score}"
end