Class: TFClient::Models::Owner
- Defined in:
- lib/textflight-client/models/scan.rb
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Attributes inherited from Model
#label, #translation, #values_hash
Instance Method Summary collapse
-
#initialize(line:) ⇒ Owner
constructor
A new instance of Owner.
- #to_s ⇒ Object
Constructor Details
#initialize(line:) ⇒ Owner
Returns a new instance of Owner.
82 83 84 85 |
# File 'lib/textflight-client/models/scan.rb', line 82 def initialize(line:) super(line: line) @username = @values_hash[:username] end |
Instance Attribute Details
#username ⇒ Object (readonly)
Returns the value of attribute username.
80 81 82 |
# File 'lib/textflight-client/models/scan.rb', line 80 def username @username end |
Instance Method Details
#to_s ⇒ Object
87 88 89 |
# File 'lib/textflight-client/models/scan.rb', line 87 def to_s "#{@translation}: #{@username}" end |