class CreateContact

Defined in:

operations/create_contact.cr

Constant Summary

ATTRIBUTES = [email : String, first : String, last : String, phone : String] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(params : Avram::Paramable, email : String | Avram::Nothing = Avram::Nothing.new, first : String | Avram::Nothing = Avram::Nothing.new, last : String | Avram::Nothing = Avram::Nothing.new, phone : String | Avram::Nothing = Avram::Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.new(email : String | Avram::Nothing = Avram::Nothing.new, first : String | Avram::Nothing = Avram::Nothing.new, last : String | Avram::Nothing = Avram::Nothing.new, phone : String | Avram::Nothing = Avram::Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


Instance Method Detail

def attributes #

[View source]
def before_run #

[View source]
def email #

[View source]
def first #

[View source]
def last #

[View source]
def phone #

[View source]
def run #

[View source]
def set_attributes(email : String | Avram::Nothing = Avram::Nothing.new, first : String | Avram::Nothing = Avram::Nothing.new, last : String | Avram::Nothing = Avram::Nothing.new, phone : String | Avram::Nothing = Avram::Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


Macro Detail

macro param_key(key) #