Module: Bidu::House

Extended by:
ActiveSupport::Concern
Defined in:
lib/bidu/house.rb,
lib/bidu/house/status.rb,
lib/bidu/house/concern.rb,
lib/bidu/house/version.rb,
lib/bidu/house/error_report.rb,
lib/bidu/house/class_methods.rb,
lib/bidu/house/report_builder.rb,
lib/bidu/house/status_builder.rb

Defined Under Namespace

Modules: ClassMethods Classes: ErrorReport, ReportBuilder, Status, StatusBuilder

Constant Summary collapse

VERSION =
'0.1.2'

Instance Method Summary collapse

Instance Method Details

#render_status(key = :default) ⇒ Object



5
6
7
8
# File 'lib/bidu/house/concern.rb', line 5

def render_status(key = :default)
  status = self.class.status_builder.build(key, params)
  render json: status.as_json, status: status.status
end