Class: Croods::Action
- Inherits:
-
Object
- Object
- Croods::Action
- Defined in:
- lib/croods/action.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#method ⇒ Object
Returns the value of attribute method.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on ⇒ Object
Returns the value of attribute on.
-
#public ⇒ Object
Returns the value of attribute public.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#service ⇒ Object
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(name, **options) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(name, **options) ⇒ Action
Returns a new instance of Action.
7 8 9 10 11 12 13 14 15 |
# File 'lib/croods/action.rb', line 7 def initialize(name, **) self.name = name.to_sym self.public = [:public] self.roles = [:roles] self.method = [:method] self.on = [:on] self.block = [:block] self.service = [:service] end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def block @block end |
#method ⇒ Object
Returns the value of attribute method.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def method @method end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def name @name end |
#on ⇒ Object
Returns the value of attribute on.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def on @on end |
#public ⇒ Object
Returns the value of attribute public.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def public @public end |
#roles ⇒ Object
Returns the value of attribute roles.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def roles @roles end |
#service ⇒ Object
Returns the value of attribute service.
5 6 7 |
# File 'lib/croods/action.rb', line 5 def service @service end |