Class: Tana::Requests::Node

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
lib/tana/requests/node.rb

Overview

Validates a generic node within an API request.

Constant Summary collapse

TYPES =
%w[boolean date field file plain reference url].freeze

Instance Method Summary collapse

Constructor Details

#initialize(types: TYPES) ⇒ Node

Returns a new instance of Node.



14
15
16
17
# File 'lib/tana/requests/node.rb', line 14

def initialize(types: TYPES, **)
  @types = types
  super(**)
end