Class: WiMP::Gen::SimilarAlbumList

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/services_types.rb

Constant Summary collapse

SIMILARALBUMS =
1
SOURCENAME =
2
FIELDS =
{
  SIMILARALBUMS => {:type => ::Thrift::Types::LIST, :name => 'similarAlbums', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::SimilarAlbum}},
  SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



589
# File 'lib/gen/services_types.rb', line 589

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


591
592
593
594
# File 'lib/gen/services_types.rb', line 591

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field similarAlbums is unset!') unless @similarAlbums
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sourceName is unset!') unless @sourceName
end