Class: Rox::Core::RoxInt

Inherits:
RoxString show all
Defined in:
lib/rox/core/entities/rox_int.rb

Direct Known Subclasses

Server::RoxInt

Instance Attribute Summary

Attributes inherited from RoxString

#client_experiment, #condition, #default_value, #impression_invoker, #name, #options, #parser

Instance Method Summary collapse

Methods inherited from RoxString

#initialize, #internal_value, #send_impressions, #set_for_evaluation

Constructor Details

This class inherits a constructor from Rox::Core::RoxString

Instance Method Details

#external_typeObject



12
13
14
# File 'lib/rox/core/entities/rox_int.rb', line 12

def external_type
  'Number'
end

#value(context = nil) ⇒ Object



6
7
8
9
10
# File 'lib/rox/core/entities/rox_int.rb', line 6

def value(context = nil)
  return_value = Rox::Server::NormalizeFlagType.normalize_int(internal_value(context, false, Integer))
  send_impressions(return_value, context)
  return_value
end