Module: Bidu::House::ClassMethods

Defined in:
lib/bidu/house/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#status_builderObject



14
15
16
# File 'lib/bidu/house/class_methods.rb', line 14

def status_builder
  @status_builder ||= Bidu::House::StatusBuilder.new
end

#status_report(*attr_names) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/bidu/house/class_methods.rb', line 5

def status_report(*attr_names)
  id = attr_names.first
  options = {
    id: id
  }.merge(attr_names.extract_options!)

  self.status_builder.add_report_config(id, options)
end