Module: Broadway::Sluggable::InstanceMethods

Defined in:
lib/broadway/mixins/sluggable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#slugObject

Returns the value of attribute slug.



8
9
10
# File 'lib/broadway/mixins/sluggable.rb', line 8

def slug
  @slug
end

Instance Method Details

#pathObject



18
19
20
# File 'lib/broadway/mixins/sluggable.rb', line 18

def path
  slug.path
end


30
31
32
# File 'lib/broadway/mixins/sluggable.rb', line 30

def permalink
  self.data['permalink']
end

#scopeObject



26
27
28
# File 'lib/broadway/mixins/sluggable.rb', line 26

def scope
  slug.scope
end

#urlObject



22
23
24
# File 'lib/broadway/mixins/sluggable.rb', line 22

def url
  slug.url
end