Class: PurposeConfig::Tube

Inherits:
PurposeConfig show all
Defined in:
lib/purpose_config.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from PurposeConfig

Instance Method Details

#register!Object



85
86
87
88
# File 'lib/purpose_config.rb', line 85

def register!
  puts "Creating #{name}"
  api.tube_purpose.create!(name: name, target_type: options.fetch(:target), type: options.fetch(:type))
end