Class: XCKnife::StreamParser::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/xcknife/stream_parser.rb

Constant Summary collapse

DEFAULT =
Options.new(nil, true, false).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#allow_fewer_shardsObject

Returns the value of attribute allow_fewer_shards

Returns:

  • (Object)

    the current value of allow_fewer_shards


29
30
31
# File 'lib/xcknife/stream_parser.rb', line 29

def allow_fewer_shards
  @allow_fewer_shards
end

#max_shard_countObject

Returns the value of attribute max_shard_count

Returns:

  • (Object)

    the current value of max_shard_count


29
30
31
# File 'lib/xcknife/stream_parser.rb', line 29

def max_shard_count
  @max_shard_count
end

#split_bundles_across_machinesObject

Returns the value of attribute split_bundles_across_machines

Returns:

  • (Object)

    the current value of split_bundles_across_machines


29
30
31
# File 'lib/xcknife/stream_parser.rb', line 29

def split_bundles_across_machines
  @split_bundles_across_machines
end

Instance Method Details

#merge(hash) ⇒ Object


30
31
32
# File 'lib/xcknife/stream_parser.rb', line 30

def merge(hash)
  self.class.new(*to_h.merge(hash).values_at(*members))
end