class UpdateContact
- UpdateContact
- Avram::Operation
- Reference
- Object
Defined in:
operations/update_contact.crConstant Summary
-
ATTRIBUTES =
[email : String, first : String, last : String, phone : String] of Nil
-
OPERATION_NEEDS =
[contact_id : String] of Nil
Constructors
-
.new(params : Avram::Paramable, contact_id : String, 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.
-
.new(contact_id : String, 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 Summary
- #attributes
- #before_run
- #contact_id : String
- #contact_id=(contact_id : String)
- #first
- #last
- #phone
- #run
-
#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 Summary
Constructor Detail
def self.new(params : Avram::Paramable, contact_id : String, 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(contact_id : String, 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 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.