Class: Sfeed::BlockAlbumResult

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

Constant Summary collapse

BLOCKALBUMS =
1
COUNT =
2
FIELDS =
{
  BLOCKALBUMS => {:type => ::Thrift::Types::LIST, :name => 'blockAlbums', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Sfeed::BlockAlbum}},
  COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



211
# File 'lib/sfeed_types.rb', line 211

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


213
214
215
216
# File 'lib/sfeed_types.rb', line 213

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