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

#get_service(service_class) ⇒ Object


14
15
16
# File 'lib/flydata/helper/base_action.rb', line 14

def get_service(service_class)
  service_class.new(config)
end