mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
18 lines
327 B
Ruby
18 lines
327 B
Ruby
class TopicPoster < OpenStruct
|
|
include ActiveModel::Serialization
|
|
|
|
attr_accessor :user, :description, :extras, :id
|
|
|
|
def attributes
|
|
{'user' => user,
|
|
'description' => description,
|
|
'extras' => extras,
|
|
'id' => id}
|
|
end
|
|
|
|
# TODO: Remove when old list is removed
|
|
def [](attr)
|
|
send(attr)
|
|
end
|
|
|
|
end
|