Class: Thredded::TopicEmailView
- Inherits:
-
Object
- Object
- Thredded::TopicEmailView
- Defined in:
- app/view_models/thredded/topic_email_view.rb
Instance Method Summary collapse
-
#initialize(topic) ⇒ TopicEmailView
constructor
A new instance of TopicEmailView.
- #no_reply ⇒ Object
- #smtp_api_tag(tag) ⇒ Object
Constructor Details
#initialize(topic) ⇒ TopicEmailView
Returns a new instance of TopicEmailView.
6 7 8 |
# File 'app/view_models/thredded/topic_email_view.rb', line 6 def initialize(topic) @topic = topic end |
Instance Method Details
#no_reply ⇒ Object
14 15 16 |
# File 'app/view_models/thredded/topic_email_view.rb', line 14 def no_reply Thredded.email_from end |
#smtp_api_tag(tag) ⇒ Object
10 11 12 |
# File 'app/view_models/thredded/topic_email_view.rb', line 10 def smtp_api_tag(tag) %({"category": ["thredded_#{@topic.private? ? 'private_topic' : @topic..name}","#{tag}"]}) end |