Class: Foobara::Auth::CreateRole

Inherits:
Command
  • Object
show all
Defined in:
foobara-auth-0.1.1/src/create_role.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Command

install!

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Instance Attribute Details

#roleObject

Returns the value of attribute role.



14
15
16
# File 'src/create_role.rb', line 14

def role
  @role
end

Instance Method Details

#create_roleObject



16
17
18
# File 'src/create_role.rb', line 16

def create_role
  self.role = Types::Role.create(inputs)
end

#executeObject



8
9
10
11
12
# File 'src/create_role.rb', line 8

def execute
  create_role

  role
end