Class: OsCtld::LocalTransfer::Log::Dataset
- Inherits:
-
Object
- Object
- OsCtld::LocalTransfer::Log::Dataset
- Defined in:
- lib/osctld/local_transfer/log.rb
Instance Attribute Summary collapse
-
#relative_name ⇒ Object
readonly
Returns the value of attribute relative_name.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(relative_name:, source:, target:) ⇒ Dataset
constructor
A new instance of Dataset.
Constructor Details
#initialize(relative_name:, source:, target:) ⇒ Dataset
Returns a new instance of Dataset.
17 18 19 20 21 |
# File 'lib/osctld/local_transfer/log.rb', line 17 def initialize(relative_name:, source:, target:) @relative_name = relative_name @source = source @target = target end |
Instance Attribute Details
#relative_name ⇒ Object (readonly)
Returns the value of attribute relative_name.
7 8 9 |
# File 'lib/osctld/local_transfer/log.rb', line 7 def relative_name @relative_name end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/osctld/local_transfer/log.rb', line 7 def source @source end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
7 8 9 |
# File 'lib/osctld/local_transfer/log.rb', line 7 def target @target end |
Class Method Details
.load(cfg) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/osctld/local_transfer/log.rb', line 9 def self.load(cfg) new( relative_name: cfg['relative_name'], source: cfg['source'], target: cfg['target'] ) end |
Instance Method Details
#dump ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/osctld/local_transfer/log.rb', line 23 def dump { 'relative_name' => relative_name, 'source' => source, 'target' => target } end |