Class: ThemeProperty
- Inherits:
-
Object
- Object
- ThemeProperty
- 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
- THUMBNAILURL =
1
- THEMERESOURCETYPE =
2
- FIELDS =
{ THUMBNAILURL => {:type => ::Thrift::Types::STRING, :name => 'thumbnailUrl'}, THEMERESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'themeResourceType', :enum_class => ::P0_a_a_b_a_a_y3} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
9177 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9177 def struct_fields; FIELDS; end |
#validate ⇒ Object
9179 9180 9181 9182 9183 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9179 def validate unless @themeResourceType.nil? || ::P0_a_a_b_a_a_y3::VALID_VALUES.include?(@themeResourceType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field themeResourceType!') end end |