class ServiceLink

Public Instance Methods

as_indexed_json(*) click to toggle source
# File lib/buweb/service_link.rb, line 43
def as_indexed_json(*)
  {
    title: title,
    slug: slug,
    description: description,
    url: url,
    topics: topics,
    keywords: keywords
  }
end

Protected Instance Methods

set_slug() click to toggle source
# File lib/buweb/service_link.rb, line 62
def set_slug
  self.slug = title.parameterize if title?
end