Sha256: f93a18d96a4ac02821422b4f8ccf9aaf861b80d24041a92dfd2275327dc74aab
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Ferver class FileIdRequest attr_reader :value def initialize(value = nil) @is_valid = false self.value = value end def value=(value) id = Integer(value) rescue nil if id.nil? @is_valid = false else @value = id @is_valid = true end end def valid? @is_valid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.1.0 | lib/ferver/file_id_request.rb |