Class: ActionWebService::StructuredType

Inherits:
BaseType
  • Object
show all
Defined in:
lib/action_web_service/support/signature_types.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from BaseType

#name, #spec, #type, #type_class

Instance Method Summary (collapse)

Methods inherited from BaseType

#array?, #human_name, #initialize

Methods included from SignatureTypes

#canonical_signature, #canonical_signature_entry, #canonical_type, #canonical_type_class, #canonical_type_name, #class_to_type_name, #derived_from?, #symbol_name, #type_name_to_class

Constructor Details

This class inherits a constructor from ActionWebService::BaseType

Instance Method Details

- (Boolean) custom?

Returns:

  • (Boolean)


215
216
217
# File 'lib/action_web_service/support/signature_types.rb', line 215

def custom?
  true
end

- (Object) each_member



202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/action_web_service/support/signature_types.rb', line 202

def each_member
  if @type_class.respond_to?(:members)
    @type_class.members.each do |name, type|
      yield name, type
    end
  elsif @type_class.respond_to?(:columns)
    i = -1
    @type_class.columns.each do |column|
      yield column.name, canonical_signature_entry(column.type, i += 1)
    end
  end
end

- (Boolean) structured?

Returns:

  • (Boolean)


219
220
221
# File 'lib/action_web_service/support/signature_types.rb', line 219

def structured?
  true
end