module OneshotSpec
  class FooPlugin < Observed::Observer
    default :timeout_in_milliseconds => 5000
    default :number_of_trials => 10

    def sample
      sleep_duration = rand / 20
      sleep sleep_duration
      "Foo #{sleep_duration}"
    end

    def logger
      Logger.new(STDOUT)
    end

    def self.plugin_name
      'foo'
    end
  end
end

module OneshotSpec
  class FooPlugin < Observed::Observer
    default :timeout_in_milliseconds => 5000
    default :number_of_trials => 10

    def sample
      sleep_duration = rand / 20
      sleep sleep_duration
      "Foo #{sleep_duration}"
    end

    def logger
      Logger.new(STDOUT)
    end

    plugin_name 'foo'
  end
end

Use the class methods to defined attributes for plugins
Use the class methods to defined attributes for plugins
