Class: LatestProductByAuthorItem
- Inherits:
-
Object
- Object
- LatestProductByAuthorItem
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- PRODUCTID =
1
- DISPLAYNAME =
2
- VERSION =
3
- NEWFLAG =
4
- PRODUCTRESOURCETYPE =
5
- POPUPLAYER =
6
- FIELDS =
{ PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'}, DISPLAYNAME => {:type => ::Thrift::Types::STRING, :name => 'displayName'}, VERSION => {:type => ::Thrift::Types::I64, :name => 'version'}, NEWFLAG => {:type => ::Thrift::Types::BOOL, :name => 'newFlag'}, PRODUCTRESOURCETYPE => {:type => ::Thrift::Types::STRUCT, :name => 'productResourceType', :class => ::ProductResourceType}, POPUPLAYER => {:type => ::Thrift::Types::I32, :name => 'popupLayer', :enum_class => ::P0_a_a_b_a_a_g1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11795 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11795 def struct_fields; FIELDS; end |
#validate ⇒ Object
11797 11798 11799 11800 11801 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11797 def validate unless @popupLayer.nil? || ::P0_a_a_b_a_a_g1::VALID_VALUES.include?(@popupLayer) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field popupLayer!') end end |