Class: TFClient::Models::OutfitSpace
- Defined in:
- lib/textflight-client/models/scan.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Model
#label, #translation, #values_hash
Instance Method Summary collapse
-
#initialize(line:) ⇒ OutfitSpace
constructor
A new instance of OutfitSpace.
- #to_s ⇒ Object
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
#value ⇒ Object (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_s ⇒ Object
100 101 102 |
# File 'lib/textflight-client/models/scan.rb', line 100 def to_s "#{@translation}: #{@value}" end |