class Hackle::Event
Attributes
key[R]
@!attribute [r] key
@return [String]
@!attribute [r] value
@return [Float, nil]
@!attribute [r] properties
@return [Hash]
properties[R]
@!attribute [r] key
@return [String]
@!attribute [r] value
@return [Float, nil]
@!attribute [r] properties
@return [Hash]
value[R]
@!attribute [r] key
@return [String]
@!attribute [r] value
@return [Float, nil]
@!attribute [r] properties
@return [Hash]
Public Class Methods
new(key:, value:, properties:)
click to toggle source
@param key [String] @param value [Float, nil] @param properties [Hash{Symbol => String, Number, boolean}]
# File lib/hackle/models/event.rb, line 16 def initialize(key:, value:, properties:) @key = key @value = value @properties = properties end
Public Instance Methods
valid?()
click to toggle source
# File lib/hackle/models/event.rb, line 22 def valid? !key.nil? && key.is_a?(String) end