Class: SimpleAlbumPageResult

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/content_types.rb

Constant Summary collapse

TOTALSIZE =
1
CURRENTPAGE =
2
PAGESIZE =
3
ALBUMS =
4
FIELDS =
{
  TOTALSIZE => {:type => ::Thrift::Types::I32, :name => 'totalSize'},
  CURRENTPAGE => {:type => ::Thrift::Types::I32, :name => 'currentPage'},
  PAGESIZE => {:type => ::Thrift::Types::I32, :name => 'pageSize'},
  ALBUMS => {:type => ::Thrift::Types::LIST, :name => 'albums', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SimpleAlbum}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



467
# File 'lib/content_types.rb', line 467

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


469
470
471
472
473
# File 'lib/content_types.rb', line 469

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalSize is unset!') unless @totalSize
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentPage is unset!') unless @currentPage
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field pageSize is unset!') unless @pageSize
end