Class: TFClient::Models::OutfitSpace

Inherits:
Model
  • Object
show all
Defined in:
lib/textflight-client/models/scan.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#label, #translation, #values_hash

Instance Method Summary collapse

Constructor Details

#initialize(line:) ⇒ OutfitSpace

Returns a new instance of OutfitSpace.



95
96
97
98
# File 'lib/textflight-client/models/scan.rb', line 95

def initialize(line:)
  super(line: line)
  @value = @values_hash[:space].to_i
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



93
94
95
# File 'lib/textflight-client/models/scan.rb', line 93

def value
  @value
end

Instance Method Details

#to_sObject



100
101
102
# File 'lib/textflight-client/models/scan.rb', line 100

def to_s
  "#{@translation}: #{@value}"
end