Class: Bidu::House::StatusBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/bidu/house/status_builder.rb

Instance Method Summary collapse

Instance Method Details

#add_report_config(key, config) ⇒ Object



8
9
10
11
12
# File 'lib/bidu/house/status_builder.rb', line 8

def add_report_config(key, config)
  status_key = config.delete(:on) || :default
  report_builder.add_config(key, config)
  config_for(status_key) << key
end

#build(key, parameters = {}) ⇒ Object



4
5
6
# File 'lib/bidu/house/status_builder.rb', line 4

def build(key, parameters = {})
  Bidu::House::Status.new(reports_for(key, parameters))
end