Class: ActionWebService::ArrayType

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

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from BaseType

#name, #spec, #type, #type_class

Instance Method Summary collapse

Methods inherited from BaseType

#human_name, #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

#initialize(spec, element_type, name) ⇒ ArrayType

Returns a new instance of ArrayType.



183
184
185
186
# File 'lib/action_web_service/support/signature_types.rb', line 183

def initialize(spec, element_type, name)
  super(spec, Array, name)
  @element_type = element_type
end

Instance Attribute Details

#element_typeObject (readonly)

Returns the value of attribute element_type.



181
182
183
# File 'lib/action_web_service/support/signature_types.rb', line 181

def element_type
  @element_type
end

Instance Method Details

#array?Boolean

Returns:

  • (Boolean)


192
193
194
# File 'lib/action_web_service/support/signature_types.rb', line 192

def array?
  true
end

#custom?Boolean

Returns:

  • (Boolean)


188
189
190
# File 'lib/action_web_service/support/signature_types.rb', line 188

def custom?
  true
end