Class: ServiceContract::AbstractType

Inherits:
Struct
  • Object
show all
Defined in:
lib/service_contract/abstract_type.rb

Direct Known Subclasses

ServiceContract::Avro::Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#definitionObject

Returns the value of attribute definition

Returns:

  • (Object)

    the current value of definition



2
3
4
# File 'lib/service_contract/abstract_type.rb', line 2

def definition
  @definition
end

Instance Method Details

#array?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/service_contract/abstract_type.rb', line 15

def array?
  false
end

#complex?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/service_contract/abstract_type.rb', line 19

def complex?
  false
end

#fieldsObject



11
12
13
# File 'lib/service_contract/abstract_type.rb', line 11

def fields
  []
end

#nameObject



3
4
5
# File 'lib/service_contract/abstract_type.rb', line 3

def name
  raise :not_implemented
end

#subtypeObject



7
8
9
# File 'lib/service_contract/abstract_type.rb', line 7

def subtype
  nil
end

#valid_ruby_typesObject



23
24
25
# File 'lib/service_contract/abstract_type.rb', line 23

def valid_ruby_types
  [Object]
end