Class: WiMP::Gen::ArtistLinkList
- Inherits:
-
Object
- Object
- WiMP::Gen::ArtistLinkList
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ARTISTLINKS =
1
- SOURCENAME =
2
- FIELDS =
{ ARTISTLINKS => {:type => ::Thrift::Types::LIST, :name => 'artistLinks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WiMP::Gen::ArtistLink}}, SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
738 |
# File 'lib/gen/services_types.rb', line 738 def struct_fields; FIELDS; end |
#validate ⇒ Object
740 741 742 743 |
# File 'lib/gen/services_types.rb', line 740 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistLinks is unset!') unless @artistLinks raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sourceName is unset!') unless @sourceName end |