Class: Async::Matrix::ApplicationService::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/async/matrix/application_service/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



13
14
15
# File 'lib/async/matrix/application_service/event.rb', line 13

def body
  @body
end

#membershipObject (readonly)

Returns the value of attribute membership.



13
14
15
# File 'lib/async/matrix/application_service/event.rb', line 13

def membership
  @membership
end

#msgtypeObject (readonly)

Returns the value of attribute msgtype.



13
14
15
# File 'lib/async/matrix/application_service/event.rb', line 13

def msgtype
  @msgtype
end