Class: SirvRestApi::AccountEvent
- Inherits:
-
Object
- Object
- SirvRestApi::AccountEvent
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
Account event
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#id ⇒ Object
Returns the value of attribute id.
-
#level ⇒ Object
Returns the value of attribute level.
-
#message ⇒ Object
Returns the value of attribute message.
-
#module ⇒ Object
Returns the value of attribute module.
-
#seen ⇒ Object
Returns the value of attribute seen.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ AccountEvent
constructor
A new instance of AccountEvent.
Constructor Details
#initialize(data = {}) ⇒ AccountEvent
Returns a new instance of AccountEvent.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/sirv_rest_api/models.rb', line 110 def initialize(data = {}) @id = data["id"] @module = data["module"] @type = data["type"] @level = data["level"] = data["message"] @filename = data["filename"] = data["timestamp"] @seen = data["seen"] end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def filename @filename end |
#id ⇒ Object
Returns the value of attribute id.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def id @id end |
#level ⇒ Object
Returns the value of attribute level.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def level @level end |
#message ⇒ Object
Returns the value of attribute message.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def end |
#module ⇒ Object
Returns the value of attribute module.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def module @module end |
#seen ⇒ Object
Returns the value of attribute seen.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def seen @seen end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def end |
#type ⇒ Object
Returns the value of attribute type.
108 109 110 |
# File 'lib/sirv_rest_api/models.rb', line 108 def type @type end |