Sha256: 856059a6ed853907caabd2c6eda8a123b912a15aba6407b3cad7bfc9a9eb6c95
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
module Ferver class FileIdRequest attr_reader :value def initialize(value = nil) @is_valid = false self.value = value end def value=(value) @value = parse_value(value) end def valid? @is_valid end private def parse_value(value) begin int_val = Integer(value) @is_valid = true int_val rescue @is_valid = false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.3.0 | lib/ferver/file_id_request.rb |