Class: FlexStationData::ValueQuality::Bad

Inherits:
Object
  • Object
show all
Defined in:
lib/flex_station_data/services/value_quality.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description) ⇒ Bad

Returns a new instance of Bad.



27
28
29
# File 'lib/flex_station_data/services/value_quality.rb', line 27

def initialize(description)
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



25
26
27
# File 'lib/flex_station_data/services/value_quality.rb', line 25

def description
  @description
end

Instance Method Details

#good?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/flex_station_data/services/value_quality.rb', line 31

def good?
  false
end

#to_sObject



35
36
37
# File 'lib/flex_station_data/services/value_quality.rb', line 35

def to_s
  description
end