Class: Sink::Models::ModelFromNestedPath

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/sink/models/model_from_nested_path.rb

Defined Under Namespace

Classes: DiffStyle

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#[], #deconstruct_keys, #inspect, #to_h, #to_s

Constructor Details

#initialize(data = {}) ⇒ ModelFromNestedPath

Create a new instance of ModelFromNestedPath from a Hash of raw data.

Parameters:

  • data (Hash{Symbol => Object}) (defaults to: {})

    . @option data [String] :commit_email What email they want in their commit messages @option data [String] :commit_name What name they want in their commit messages @option data [String] :diff_style Do they prefer view Git diffs side by side, or interleaved?



7
# File 'lib/sink/models/model_from_nested_path.rb', line 7

def initialize(data = {}) = super

Instance Attribute Details

#commit_emailString

What email they want in their commit messages

Returns:

  • (String)


9
# File 'lib/sink/models/model_from_nested_path.rb', line 9

required :commit_email, String

#commit_nameString

What name they want in their commit messages

Returns:

  • (String)


14
# File 'lib/sink/models/model_from_nested_path.rb', line 14

required :commit_name, String

#diff_styleSymbol, Sink::Models::ModelFromNestedPath::DiffStyle

Do they prefer view Git diffs side by side, or interleaved?



20
# File 'lib/sink/models/model_from_nested_path.rb', line 20

required :diff_style, enum: -> { Sink::Models::ModelFromNestedPath::DiffStyle }