Class: YeshouaCrm::Liquid::NewsDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/yeshoua_crm/liquid/drops/news_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(news) ⇒ NewsDrop

Returns a new instance of NewsDrop.



40
41
42
# File 'lib/yeshoua_crm/liquid/drops/news_drop.rb', line 40

def initialize(news)
  @news = news
end

Instance Method Details

#authorObject



44
45
46
# File 'lib/yeshoua_crm/liquid/drops/news_drop.rb', line 44

def author
  UserDrop.new @news.author
end

#custom_field_valuesObject



48
49
50
# File 'lib/yeshoua_crm/liquid/drops/news_drop.rb', line 48

def custom_field_values
  @news.custom_field_values
end