Class: ExtendedProfileBirthday
- Inherits:
-
Object
- Object
- ExtendedProfileBirthday
- 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
- YEAR =
1
- YEARPRIVACYLEVELTYPE =
2
- YEARENABLED =
3
- DAY =
5
- DAYPRIVACYLEVELTYPE =
6
- DAYENABLED =
7
- FIELDS =
{ YEAR => {:type => ::Thrift::Types::STRING, :name => 'year'}, YEARPRIVACYLEVELTYPE => {:type => ::Thrift::Types::I32, :name => 'yearPrivacyLevelType', :enum_class => ::J0_a_e_a_b_we}, YEARENABLED => {:type => ::Thrift::Types::BOOL, :name => 'yearEnabled'}, DAY => {:type => ::Thrift::Types::STRING, :name => 'day'}, DAYPRIVACYLEVELTYPE => {:type => ::Thrift::Types::I32, :name => 'dayPrivacyLevelType', :enum_class => ::J0_a_e_a_b_we}, DAYENABLED => {:type => ::Thrift::Types::BOOL, :name => 'dayEnabled'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14317 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14317 def struct_fields; FIELDS; end |
#validate ⇒ Object
14319 14320 14321 14322 14323 14324 14325 14326 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14319 def validate unless @yearPrivacyLevelType.nil? || ::J0_a_e_a_b_we::VALID_VALUES.include?(@yearPrivacyLevelType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field yearPrivacyLevelType!') end unless @dayPrivacyLevelType.nil? || ::J0_a_e_a_b_we::VALID_VALUES.include?(@dayPrivacyLevelType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dayPrivacyLevelType!') end end |