Sha256: cb4b4f034765fcf39eb3b06915545410770e814d86a1b59bfea52f37573b7d7a
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
module Bidu module House class Report include JsonParser require 'bidu/house/report/active_record' require 'bidu/house/report/error' require 'bidu/house/report/range' ALLOWED_PARAMETERS = [] DEFAULT_OPTION = {} attr_reader :json json_parse :id, case: :snake def initialize(options = {}) @json = DEFAULT_OPTION.merge(options) end def status @status ||= error? ? :error : :ok end def error? raise 'Not implemented yet' end def as_json { status: status } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bidu-house-1.2.0 | lib/bidu/house/report.rb |