class TFClient::Models::ShieldCharge

Attributes

value[R]

Public Class Methods

new(line:) click to toggle source
Calls superclass method TFClient::Models::Model::new
# File lib/textflight-client/models/scan.rb, line 108
def initialize(line:)
  super(line: line)
  @value = @values_hash[:charge].to_f
end

Public Instance Methods

to_s() click to toggle source
# File lib/textflight-client/models/scan.rb, line 113
def to_s
  "#{@translation}: #{@value}"
end