Sha256: b0c7e50d0cad045f953fdbbb7452fd4242434b891baa1d8ce9a3d6c6b9abd4da
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
module Open311 class ServiceRequest attr_reader :token, :id def initialize(hash) @hash = hash @id = hash.service_request_id.to_i @token = hash.token.to_i end # Delegate to the hash def self.method_missing(method, *args, &block) return super unless @hash.has_key?(method) @hash[method] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open311-0.1.0 | lib/open311/service_request.rb |