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