Module: AWS::Core::OptionGrammar::Descriptors::Integer
- Extended by:
- NoArgs
- Defined in:
- lib/aws/core/option_grammar.rb
Instance Method Summary collapse
Methods included from NoArgs
Instance Method Details
#encode_value(value) ⇒ Object
130 131 132 |
# File 'lib/aws/core/option_grammar.rb', line 130 def encode_value(value) value.to_s end |
#validate(value, context = nil) ⇒ Object
125 126 127 128 |
# File 'lib/aws/core/option_grammar.rb', line 125 def validate(value, context = nil) raise format_error("integer value", context) unless value.respond_to? :to_int end |