Class: WiMP::Gen::Artist

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

Constant Summary collapse

ARTISTNAME =
1
ARTISTBIO =
2
ARTISTID =
3
INFO =
4
5
FIELDS =
{
  ARTISTNAME => {:type => ::Thrift::Types::STRING, :name => 'artistName'},
  ARTISTBIO => {:type => ::Thrift::Types::STRING, :name => 'artistBio'},
  ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'},
  INFO => {:type => ::Thrift::Types::STRING, :name => 'info', :optional => true},
  LINK => {:type => ::Thrift::Types::STRING, :name => 'link', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


179
180
181
182
183
# File 'lib/gen/services_types.rb', line 179

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