Class: FacebookService::GetStatus_result

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/thrift/facebook_service.rb

Constant Summary collapse

SUCCESS =
0
FIELDS =
{
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Fb_status}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


375
# File 'lib/thrift/facebook_service.rb', line 375

def struct_fields; FIELDS; end

#validateObject


377
378
379
380
381
# File 'lib/thrift/facebook_service.rb', line 377

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