Class: PicoApi::Entities::Error
- Inherits:
-
ROM::Struct
- Object
- ROM::Struct
- PicoApi::Entities::Error
- Defined in:
- lib/pico_api/entities/error.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
17 18 19 |
# File 'lib/pico_api/entities/error.rb', line 17 def id { id: SecureRandom.hex(5) } end |
#to_h ⇒ Object
13 14 15 |
# File 'lib/pico_api/entities/error.rb', line 13 def to_h id.merge(super) end |