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 => ::J0_a_a_b_a_a_d4} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7613 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7613 def struct_fields; FIELDS; end |
#validate ⇒ Object
7615 7616 7617 7618 7619 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7615 def validate unless @themeResourceType.nil? || ::J0_a_a_b_a_a_d4::VALID_VALUES.include?(@themeResourceType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field themeResourceType!') end end |