Class: PagesCore::DestroyInviteService
- Inherits:
-
Object
- Object
- PagesCore::DestroyInviteService
- Defined in:
- app/services/pages_core/destroy_invite_service.rb
Instance Attribute Summary collapse
-
#invite ⇒ Object
readonly
Returns the value of attribute invite.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(invite:) ⇒ DestroyInviteService
constructor
A new instance of DestroyInviteService.
Constructor Details
#initialize(invite:) ⇒ DestroyInviteService
Returns a new instance of DestroyInviteService.
7 8 9 |
# File 'app/services/pages_core/destroy_invite_service.rb', line 7 def initialize(invite:) @invite = invite end |
Instance Attribute Details
#invite ⇒ Object (readonly)
Returns the value of attribute invite.
5 6 7 |
# File 'app/services/pages_core/destroy_invite_service.rb', line 5 def invite @invite end |
Class Method Details
.call(invite:) ⇒ Object
12 13 14 |
# File 'app/services/pages_core/destroy_invite_service.rb', line 12 def call(invite:) new(invite: invite).call end |