Class WS::ParamInfo
In: vendor/actionwebservice/lib/action_web_service/vendor/ws/types.rb
Parent: Object

Methods

create   new  

Attributes

data  [RW] 
name  [RW] 
type  [RW] 

Public Class methods

[Source]

     # File vendor/actionwebservice/lib/action_web_service/vendor/ws/types.rb, line 108
108:     def self.create(spec, data, index=nil)
109:       name = spec.is_a?(Hash) ? spec.keys[0].to_s : (index ? "param#{index}" : nil)
110:       type = BaseTypes.canonical_param_type_class(spec)
111:       ParamInfo.new(name, type, data)
112:     end

[Source]

     # File vendor/actionwebservice/lib/action_web_service/vendor/ws/types.rb, line 102
102:     def initialize(name, type, data=nil)
103:       @name = name
104:       @type = type
105:       @data = data
106:     end

[Validate]