class ServiceContract::Avro::UnionType
Public Instance Methods
name()
click to toggle source
# File lib/service_contract/avro/type.rb, line 62 def name "Union(#{union_types.map(&:name).join(", ")})" end
valid_ruby_types()
click to toggle source
# File lib/service_contract/avro/type.rb, line 66 def valid_ruby_types union_types.map(&:valid_ruby_types).flatten end
Protected Instance Methods
union_types()
click to toggle source
# File lib/service_contract/avro/type.rb, line 72 def union_types definition.schemas.map{|schema| Type.build(schema)} end