Class: Cb::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.



7
8
9
10
# File 'lib/cb/models/implementations/branding/widget.rb', line 7

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

Instance Attribute Details

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/cb/models/implementations/branding/widget.rb', line 5

def type
  @type
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/cb/models/implementations/branding/widget.rb', line 5

def url
  @url
end