class TFClient::Models::Coordinates
Attributes
x[R]
y[R]
Public Class Methods
new(line:)
click to toggle source
Calls superclass method
TFClient::Models::Model::new
# File lib/textflight-client/models/nav.rb, line 104 def initialize(line:) super(line: line) @x = @values_hash[:x].to_i @y = @values_hash[:y].to_i end
Public Instance Methods
to_s()
click to toggle source
# File lib/textflight-client/models/nav.rb, line 110 def to_s %Q[#{@translation}: (#{@x},#{@y})] end