Method: TFClient::TFPrompt#initialize
- Defined in:
- lib/textflight-client/tfprompt.rb
#initialize(operator:, status_report:) ⇒ TFPrompt
10 11 12 13 14 15 16 |
# File 'lib/textflight-client/tfprompt.rb', line 10 def initialize(operator:, status_report:) @operator = operator @status_report = status_report @mass = status_report.hash[:mass].to_i @warp_charge = status_report.hash[:warp_charge] @shield_charge = status_report.hash[:shield] end |