Class: Cb::Models::Branding::Widget

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/branding/widget.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, url) ⇒ Widget

Returns a new instance of Widget.



17
18
19
20
# File 'lib/cb/models/implementations/branding/widget.rb', line 17

def initialize(type, url)
  @type = type
  @url = url
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



15
16
17
# File 'lib/cb/models/implementations/branding/widget.rb', line 15

def type
  @type
end

#urlObject

Returns the value of attribute url.



15
16
17
# File 'lib/cb/models/implementations/branding/widget.rb', line 15

def url
  @url
end