Class: Cadenya::Types::ParameterAction_Set

Inherits:
Object
  • Object
show all
Defined in:
lib/cadenya/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path: nil, value_template: nil) ⇒ ParameterAction_Set

Returns a new instance of ParameterAction_Set.



4562
4563
4564
4565
# File 'lib/cadenya/types.rb', line 4562

def initialize(path: nil, value_template: nil)
  @path = path
  @value_template = value_template
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4560
4561
4562
# File 'lib/cadenya/types.rb', line 4560

def path
  @path
end

#value_templateObject (readonly)

Returns the value of attribute value_template.



4560
4561
4562
# File 'lib/cadenya/types.rb', line 4560

def value_template
  @value_template
end

Class Method Details

.from_json(data) ⇒ Object



4567
4568
4569
4570
4571
4572
# File 'lib/cadenya/types.rb', line 4567

def self.from_json(data)
  new(
    path: data["path"],
    value_template: data["valueTemplate"],
  )
end

Instance Method Details

#to_hObject



4574
4575
4576
4577
4578
4579
# File 'lib/cadenya/types.rb', line 4574

def to_h
  {
    path: Util.plain(@path),
    value_template: Util.plain(@value_template),
  }.reject { |_k, v| v.nil? }
end