Class: DataDomeUserId
- Inherits:
-
Object
- Object
- DataDomeUserId
- Defined in:
- lib/model/events.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id:) ⇒ DataDomeUserId
constructor
A new instance of DataDomeUserId.
- #to_json(options = {}) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(id:) ⇒ DataDomeUserId
Returns a new instance of DataDomeUserId.
35 36 37 |
# File 'lib/model/events.rb', line 35 def initialize(id:) @id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
33 34 35 |
# File 'lib/model/events.rb', line 33 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
43 44 45 46 47 |
# File 'lib/model/events.rb', line 43 def to_json( = {}) { id: @id, }.to_json end |
#to_s ⇒ Object
39 40 41 |
# File 'lib/model/events.rb', line 39 def to_s "DataDomeUserId: id=#{@id}" end |