Class: Polaris::Logo

Inherits:
Object
  • Object
show all
Defined in:
app/components/polaris/logo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src:, url: nil, alt: nil, width: "125px") ⇒ Logo

Returns a new instance of Logo.



7
8
9
10
11
12
# File 'app/components/polaris/logo.rb', line 7

def initialize(src:, url: nil, alt: nil, width: "125px")
  @url = url
  @src = src
  @alt = alt
  @width = width
end

Instance Attribute Details

#altObject (readonly)

Returns the value of attribute alt.



4
5
6
# File 'app/components/polaris/logo.rb', line 4

def alt
  @alt
end

#srcObject (readonly)

Returns the value of attribute src.



2
3
4
# File 'app/components/polaris/logo.rb', line 2

def src
  @src
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'app/components/polaris/logo.rb', line 3

def url
  @url
end

#widthObject (readonly)

Returns the value of attribute width.



5
6
7
# File 'app/components/polaris/logo.rb', line 5

def width
  @width
end