Class: ActionWebService::SimpleType

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, #structured?

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

#baseObject



239
240
241
# File 'lib/action_web_service/support/signature_types.rb', line 239

def base
  @type_class.restriction_base if @type_class.respond_to?(:restriction_base)
end

#custom?Boolean

Returns:

  • (Boolean)


251
252
253
# File 'lib/action_web_service/support/signature_types.rb', line 251

def custom?
  true
end

#restrictionsObject



243
244
245
246
247
248
249
# File 'lib/action_web_service/support/signature_types.rb', line 243

def restrictions
  if @type_class.respond_to?(:restrictions)
    @type_class.restrictions.each do |name, value|
      yield name, value
    end
  end
end

#simple?Boolean

Returns:

  • (Boolean)


255
256
257
# File 'lib/action_web_service/support/signature_types.rb', line 255

def simple?
  true
end