Class: BrandLogo::Icon
- Inherits:
-
Object
- Object
- BrandLogo::Icon
- 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
-
#dimensions ⇒ Object
readonly
Returns the value of attribute dimensions.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, dimensions:, format:) ⇒ Icon
constructor
A new instance of Icon.
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
#dimensions ⇒ Object (readonly)
Returns the value of attribute dimensions.
16 17 18 |
# File 'lib/brand_logo/icon.rb', line 16 def dimensions @dimensions end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
19 20 21 |
# File 'lib/brand_logo/icon.rb', line 19 def format @format end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/brand_logo/icon.rb', line 13 def url @url end |