Sha256: 121ada682d86aefc10417c7ecd8e560d03495c514ce8712702cc2811c31b9672

Contents?: true

Size: 384 Bytes

Versions: 9

Compression:

Stored size: 384 Bytes

Contents

module Bidu
  module House
    module ClassMethods

      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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bidu-house-1.3.0 lib/bidu/house/class_methods.rb
bidu-house-1.2.0 lib/bidu/house/class_methods.rb
bidu-house-1.1.0 lib/bidu/house/class_methods.rb
bidu-house-1.0.0 lib/bidu/house/class_methods.rb
bidu-house-0.2.1 lib/bidu/house/class_methods.rb
bidu-house-0.2.0 lib/bidu/house/class_methods.rb
bidu-house-0.1.2 lib/bidu/house/class_methods.rb
bidu-house-0.1.1 lib/bidu/house/class_methods.rb
bidu-house-0.1.0 lib/bidu/house/class_methods.rb