Class: WiMP::Gen::AlbumReview
- Inherits:
-
Object
- Object
- WiMP::Gen::AlbumReview
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- REVIEW =
1
- SUMMARY =
2
- SOURCENAME =
3
- FIELDS =
{ REVIEW => {:type => ::Thrift::Types::STRING, :name => 'review'}, SUMMARY => {:type => ::Thrift::Types::STRING, :name => 'summary'}, SOURCENAME => {:type => ::Thrift::Types::STRING, :name => 'sourceName'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
542 |
# File 'lib/gen/services_types.rb', line 542 def struct_fields; FIELDS; end |
#validate ⇒ Object
544 545 546 547 548 |
# File 'lib/gen/services_types.rb', line 544 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field review is unset!') unless @review raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field summary is unset!') unless @summary raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field sourceName is unset!') unless @sourceName end |