Class: Cadenya::Types::ToolOverlay_ParameterAction_Pin
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolOverlay_ParameterAction_Pin
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#pin ⇒ Object
readonly
Returns the value of attribute pin.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, pin: nil) ⇒ ToolOverlay_ParameterAction_Pin
constructor
A new instance of ToolOverlay_ParameterAction_Pin.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, pin: nil) ⇒ ToolOverlay_ParameterAction_Pin
Returns a new instance of ToolOverlay_ParameterAction_Pin.
8412 8413 8414 8415 |
# File 'lib/cadenya/types.rb', line 8412 def initialize(type: nil, pin: nil) @type = type @pin = pin end |
Instance Attribute Details
#pin ⇒ Object (readonly)
Returns the value of attribute pin.
8410 8411 8412 |
# File 'lib/cadenya/types.rb', line 8410 def pin @pin end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8410 8411 8412 |
# File 'lib/cadenya/types.rb', line 8410 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8417 8418 8419 8420 8421 8422 |
# File 'lib/cadenya/types.rb', line 8417 def self.from_json(data) new( type: data["type"], pin: data["pin"].nil? ? nil : Types::ParameterAction_Pin.from_json(data["pin"]), ) end |