Class: Eaternet::Prototype::InspectionData

Inherits:
Object
  • Object
show all
Defined in:
lib/eaternet/prototype.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orig_key:, business_orig_key:, score:, date:) ⇒ InspectionData


66
67
68
69
70
71
# File 'lib/eaternet/prototype.rb', line 66

def initialize(orig_key:, business_orig_key:, score:, date:)
  @orig_key = orig_key
  @business_orig_key = business_orig_key
  @score = score
  @date = date
end

Instance Attribute Details

#business_orig_keyString (readonly)


64
65
66
# File 'lib/eaternet/prototype.rb', line 64

def business_orig_key
  @business_orig_key
end

#dateString (readonly)


64
65
66
# File 'lib/eaternet/prototype.rb', line 64

def date
  @date
end

#orig_keyString (readonly)


64
65
66
# File 'lib/eaternet/prototype.rb', line 64

def orig_key
  @orig_key
end

#scoreString (readonly)


64
65
66
# File 'lib/eaternet/prototype.rb', line 64

def score
  @score
end

Instance Method Details

#to_sObject


73
74
75
# File 'lib/eaternet/prototype.rb', line 73

def to_s
  "Inspection #{@orig_key}"
end