Class: WiMP::Gen::SimilarAlbum
- Inherits:
-
Object
- Object
- WiMP::Gen::SimilarAlbum
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ALBUMID =
1
- TITLE =
2
- ARTISTNAME =
3
- ARTISTID =
4
- FIELDS =
{ ALBUMID => {:type => ::Thrift::Types::I32, :name => 'albumId'}, TITLE => {:type => ::Thrift::Types::STRING, :name => 'title'}, ARTISTNAME => {:type => ::Thrift::Types::STRING, :name => 'artistName'}, ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
567 |
# File 'lib/gen/services_types.rb', line 567 def struct_fields; FIELDS; end |
#validate ⇒ Object
569 570 571 572 573 574 |
# File 'lib/gen/services_types.rb', line 569 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field albumId is unset!') unless @albumId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field title is unset!') unless @title raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistName is unset!') unless @artistName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistId is unset!') unless @artistId end |