Class: ProductSubscriptionProperty

Inherits:
Object
  • Object
show all
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

AVAILABLEFORSUBSCRIBE =
1
SUBSCRIPTIONAVAILABILITY =
2
FIELDS =
{
  AVAILABLEFORSUBSCRIBE => {:type => ::Thrift::Types::BOOL, :name => 'availableForSubscribe'},
  SUBSCRIPTIONAVAILABILITY => {:type => ::Thrift::Types::I32, :name => 'subscriptionAvailability', :enum_class => ::P0_a_a_b_a_a_i1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



10247
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10247

def struct_fields; FIELDS; end

#validateObject



10249
10250
10251
10252
10253
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10249

def validate
  unless @subscriptionAvailability.nil? || ::P0_a_a_b_a_a_i1::VALID_VALUES.include?(@subscriptionAvailability)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subscriptionAvailability!')
  end
end