Class: Hackle::EventType
- Inherits:
-
Object
- Object
- Hackle::EventType
- Defined in:
- lib/hackle/models/event_type.rb
Instance Attribute Summary collapse
- #id ⇒ Integer readonly
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, key:) ⇒ EventType
constructor
A new instance of EventType.
Constructor Details
#initialize(id:, key:) ⇒ EventType
Returns a new instance of EventType.
12 13 14 15 |
# File 'lib/hackle/models/event_type.rb', line 12 def initialize(id:, key:) @id = id @key = key end |
Instance Attribute Details
#id ⇒ Integer (readonly)
8 9 10 |
# File 'lib/hackle/models/event_type.rb', line 8 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 |
# File 'lib/hackle/models/event_type.rb', line 8 attr_reader :id, :key |