module Oid::ApplicationService::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_application_service(instance : Oid::Service::Application) : Entitas::Entity #

Add a Oid::ApplicationService to the entity. Returns self to allow chainables

entity.add_application_service(1)

def add_component_application_service : Entitas::Entity #

Add a Oid::ApplicationService to the entity. Returns self to allow chainables

entity.add_component_application_service

def add_component_application_service(**args) : Entitas::Entity #

Add a Oid::ApplicationService to the entity. Returns self to allow chainables

entity.add_component_application_service

def application_service : Oid::ApplicationService #

Will return the component that is a Oid::ApplicationService or raise


def application_service? : Bool #

def del_application_service : Entitas::Entity #

Delete Oid::ApplicationService from the entity. Returns self to allow chainables

entity.del_application_service
entity.application_service # => nil

def del_component_application_service : Entitas::Entity #

Delete Oid::ApplicationService from the entity. Returns self to allow chainables

entity.del_application_service
entity.application_service # => nil

def get_component_application_service : Oid::ApplicationService #

Will return the component that is a Oid::ApplicationService or raise


def has_application_service? : Bool #

Will return true if the entity has an component Oid::ApplicationService or false if it does not


def has_component_application_service? : Bool #

Will return true if the entity has an component Oid::ApplicationService or false if it does not


def remove_application_service #

Append. Alias for #del_application_service


def remove_component_application_service #

def replace_application_service(instance : Oid::Service::Application) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_application_service(value: 1)
entity.get_application_service # => (new_comp)

or

entity.replace_application_service(1)
entity.get_application_service # => (new_comp)

def replace_application_service(component : Oid::ApplicationService) #

Will replace the current component with the new one provided

entity.replace_component_application_service(new_comp)
entity.get_application_service # => (new_comp)

def replace_component_application_service(component : Oid::ApplicationService) #

Append. Alias for #replace_application_service


def replace_component_application_service(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_application_service
entity.get_application_service # => (new_comp)