Class: Croods::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/croods/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, **options)
  self.name = name.to_sym
  self.public = options[:public]
  self.roles = options[:roles]
  self.method = options[:method]
  self.on = options[:on]
  self.block = options[:block]
  self.service = options[:service]
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



5
6
7
# File 'lib/croods/action.rb', line 5

def block
  @block
end

#methodObject

Returns the value of attribute method.



5
6
7
# File 'lib/croods/action.rb', line 5

def method
  @method
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/croods/action.rb', line 5

def name
  @name
end

#onObject

Returns the value of attribute on.



5
6
7
# File 'lib/croods/action.rb', line 5

def on
  @on
end

#publicObject

Returns the value of attribute public.



5
6
7
# File 'lib/croods/action.rb', line 5

def public
  @public
end

#rolesObject

Returns the value of attribute roles.



5
6
7
# File 'lib/croods/action.rb', line 5

def roles
  @roles
end

#serviceObject

Returns the value of attribute service.



5
6
7
# File 'lib/croods/action.rb', line 5

def service
  @service
end