Sha256: 42226b10c2722c32175da883f51cadd93251557be377aab4918dd5972e44ff84
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
module Sensu module Push class Entity attr_reader :name, :namespace def initialize(options={}) @options = options @name = options[:entity_name] @namespace = options.fetch(:namespace, "default") end def to_hash { :metadata => { :name => @name, :namespace => @namespace }, :entity_class => "proxy" } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sensu-push-0.3.0 | lib/sensu/push/entity.rb |