Class: Flydata::Helper::BaseAction

Inherits:
Object
  • Object
show all
Includes:
FlydataCore::Logger
Defined in:
lib/flydata/helper/base_action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ BaseAction

Returns a new instance of BaseAction.



8
9
10
# File 'lib/flydata/helper/base_action.rb', line 8

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



12
13
14
# File 'lib/flydata/helper/base_action.rb', line 12

def config
  @config
end

Instance Method Details

#config_hash(opts) ⇒ Object

Override def execute(opts = {}, &block) end



18
19
20
# File 'lib/flydata/helper/base_action.rb', line 18

def config_hash(opts)
  opts[:config_hash] || {}
end