Class: TFClient::Models::ClaimedBy

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

Instance Attribute Summary collapse

Attributes inherited from Model

#label, #translation, #values_hash

Instance Method Summary collapse

Constructor Details

#initialize(line:) ⇒ ClaimedBy

Returns a new instance of ClaimedBy.



118
119
120
121
# File 'lib/textflight-client/models/nav.rb', line 118

def initialize(line:)
  super(line: line)
  @faction = @values_hash[:faction]
end

Instance Attribute Details

#factionObject (readonly)

Returns the value of attribute faction.



116
117
118
# File 'lib/textflight-client/models/nav.rb', line 116

def faction
  @faction
end

Instance Method Details

#to_sObject



123
124
125
# File 'lib/textflight-client/models/nav.rb', line 123

def to_s
  %Q[#{@translation} '#{@faction}']
end