Sha256: e8ffbcd9ee3e4890383c6287bccb01c5fcf96ba6970374dad201e9e1b1fd63ee
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
require_relative 'base' module Amsi class AttributeParser # Parse the response value of an integer attribute class Integer < Base # @return [Integer] the parsed attribute value def parse Integer(value, 10) rescue ArgumentError raise Error::InvalidResponse, "Invalid integer response value: #{value}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amsi-1.1.0 | lib/amsi/attribute_parser/integer.rb |
amsi-1.0.1 | lib/amsi/attribute_parser/integer.rb |
amsi-1.0.0 | lib/amsi/attribute_parser/integer.rb |