Class: BrandLogo::Icon

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/brand_logo/icon.rb

Overview

Represents a brand_logo icon with its URL, dimensions and format Used to store and return brand_logo information across the gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, dimensions:, format:) ⇒ Icon

Returns a new instance of Icon.



28
29
30
31
32
# File 'lib/brand_logo/icon.rb', line 28

def initialize(url:, dimensions:, format:)
  @url = url
  @dimensions = dimensions
  @format = format
end

Instance Attribute Details

#dimensionsObject (readonly)

Returns the value of attribute dimensions.



16
17
18
# File 'lib/brand_logo/icon.rb', line 16

def dimensions
  @dimensions
end

#formatObject (readonly)

Returns the value of attribute format.



19
20
21
# File 'lib/brand_logo/icon.rb', line 19

def format
  @format
end

#urlObject (readonly)

Returns the value of attribute url.



13
14
15
# File 'lib/brand_logo/icon.rb', line 13

def url
  @url
end