Class: Async::Matrix::ApplicationService::Content
- Inherits:
-
Object
- Object
- Async::Matrix::ApplicationService::Content
- Defined in:
- lib/async/matrix/application_service/event.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#membership ⇒ Object
readonly
Returns the value of attribute membership.
-
#msgtype ⇒ Object
readonly
Returns the value of attribute msgtype.
Instance Method Summary collapse
-
#initialize(data) ⇒ Content
constructor
A new instance of Content.
Constructor Details
#initialize(data) ⇒ Content
Returns a new instance of Content.
15 16 17 18 19 |
# File 'lib/async/matrix/application_service/event.rb', line 15 def initialize(data) @msgtype = data["msgtype"] @body = data["body"] @membership = data["membership"] end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
13 14 15 |
# File 'lib/async/matrix/application_service/event.rb', line 13 def body @body end |
#membership ⇒ Object (readonly)
Returns the value of attribute membership.
13 14 15 |
# File 'lib/async/matrix/application_service/event.rb', line 13 def membership @membership end |
#msgtype ⇒ Object (readonly)
Returns the value of attribute msgtype.
13 14 15 |
# File 'lib/async/matrix/application_service/event.rb', line 13 def msgtype @msgtype end |