Class: Tana::Requests::Add

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

Overview

Validates an API add request.

Constant Summary collapse

TARGETS =
["INBOX", "SCHEMA", /\A[0-9a-z\-_]{12}\Z/i].freeze

Instance Method Summary collapse

Constructor Details

#initialize(targets: TARGETS) ⇒ Add

Returns a new instance of Add.



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

def initialize(targets: TARGETS, **)
  @targets = targets
  super(**)
end