Class: ActionWebService::Scaffolding::WebServiceModel::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/action_web_service/scaffolding.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(real_container) ⇒ Container

Returns a new instance of Container.



240
241
242
243
244
245
246
247
248
249
250
251
# File 'lib/action_web_service/scaffolding.rb', line 240

def initialize(real_container)
  @real_container = real_container
  @dispatching_mode = @real_container.class.web_service_dispatching_mode
  @services = []
  if @dispatching_mode == :direct
    @services << Service.new(@real_container.controller_name, @real_container)
  else
    @real_container.class.web_services.each do |name, obj|
      @services << Service.new(name, @real_container.instance_eval{ web_service_object(name) })
    end
  end
end

Instance Attribute Details

#dispatching_modeObject (readonly)

Returns the value of attribute dispatching_mode.



238
239
240
# File 'lib/action_web_service/scaffolding.rb', line 238

def dispatching_mode
  @dispatching_mode
end

#servicesObject (readonly)

Returns the value of attribute services.



237
238
239
# File 'lib/action_web_service/scaffolding.rb', line 237

def services
  @services
end