Class: Csvtool::Interface::CLI::Output::Streams
- Inherits:
-
Object
- Object
- Csvtool::Interface::CLI::Output::Streams
- Defined in:
- lib/csvtool/interface/cli/output/streams.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data:, ui:) ⇒ Streams
constructor
A new instance of Streams.
Constructor Details
#initialize(data:, ui:) ⇒ Streams
Returns a new instance of Streams.
14 15 16 17 |
# File 'lib/csvtool/interface/cli/output/streams.rb', line 14 def initialize(data:, ui:) @data = data @ui = ui end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/csvtool/interface/cli/output/streams.rb', line 8 def data @data end |
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
8 9 10 |
# File 'lib/csvtool/interface/cli/output/streams.rb', line 8 def ui @ui end |
Class Method Details
.build(data:, ui: data) ⇒ Object
10 11 12 |
# File 'lib/csvtool/interface/cli/output/streams.rb', line 10 def self.build(data:, ui: data) new(data: data, ui: ui) end |