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.



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

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

Instance Attribute Details

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end