Class: WiMP::Gen::SimilarAlbumList
- Inherits:
-
Object
- Object
- WiMP::Gen::SimilarAlbumList
- 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_fields ⇒ Object
589 |
# File 'lib/gen/services_types.rb', line 589 def struct_fields; FIELDS; end |
#validate ⇒ Object
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 |