Class: AdminArticle

Inherits:
Upmin::Model
  • Object
show all
Defined in:
app/upmin/admin_article.rb

Instance Method Summary collapse

Instance Method Details

#titleObject


7
8
9
# File 'app/upmin/admin_article.rb', line 7

def title
  object.title
end

#update_social_attributesObject


11
12
13
14
15
16
17
# File 'app/upmin/admin_article.rb', line 11

def update_social_attributes
  if ArticleServices::Synchronize.new(object).call
    'Completed'
  else
    object.errors.full_messages.to_sentence
  end
end