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



233
234
235
# File 'lib/action_web_service/support/signature_types.rb', line 233

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

#custom?Boolean

Returns:

  • (Boolean)


245
246
247
# File 'lib/action_web_service/support/signature_types.rb', line 245

def custom?
  true
end

#restrictionsObject



237
238
239
240
241
242
243
# File 'lib/action_web_service/support/signature_types.rb', line 237

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)


249
250
251
# File 'lib/action_web_service/support/signature_types.rb', line 249

def simple?
  true
end