class Hackle::EventType

Attributes

id[R]

@!attribute [r] id

@return [Integer]

@!attribute [r] key

@return [String]
key[R]

@!attribute [r] id

@return [Integer]

@!attribute [r] key

@return [String]

Public Class Methods

new(id:, key:) click to toggle source

@param id [Integer] @param key [String]

# File lib/hackle/models/event_type.rb, line 12
def initialize(id:, key:)
  @id = id
  @key = key
end
undefined(key:) click to toggle source

@param key [String]

# File lib/hackle/models/event_type.rb, line 18
def self.undefined(key:)
  EventType.new(id: 0, key: key)
end