Class: AdSpace::Breadcrumb

Inherits:
Object
  • Object
show all
Defined in:
app/models/ad_space/breadcrumb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ Breadcrumb

Returns a new instance of Breadcrumb.



5
6
7
8
# File 'app/models/ad_space/breadcrumb.rb', line 5

def initialize(name, path)
  @name = name
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'app/models/ad_space/breadcrumb.rb', line 3

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'app/models/ad_space/breadcrumb.rb', line 3

def path
  @path
end

Instance Method Details

#link?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/ad_space/breadcrumb.rb', line 10

def link?
  @path.present?
end