Class: WiMP::Gen::SimilarArtist
- Inherits:
-
Object
- Object
- WiMP::Gen::SimilarArtist
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ARTISTID =
1
- ARTISTNAME =
2
- FIELDS =
{ ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, ARTISTNAME => {:type => ::Thrift::Types::STRING, :name => 'artistName'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
638 |
# File 'lib/gen/services_types.rb', line 638 def struct_fields; FIELDS; end |
#validate ⇒ Object
640 641 642 643 |
# File 'lib/gen/services_types.rb', line 640 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistId is unset!') unless @artistId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistName is unset!') unless @artistName end |