Class: WiMP::Gen::ArtistBiography

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

Constant Summary collapse

BIOGRAPHYSUMMARY =
1
BIOGRAPHY =
2
SOURCENAME =
3
FIELDS =
{
  BIOGRAPHYSUMMARY => {:type => ::Thrift::Types::STRING, :name => 'biographySummary'},
  BIOGRAPHY => {:type => ::Thrift::Types::STRING, :name => 'biography'},
  SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


762
763
764
765
766
# File 'lib/gen/services_types.rb', line 762

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