Class: LocalPac::ProxyPac::HTMLData

Inherits:
Object
  • Object
show all
Defined in:
lib/local_pac/proxy_pac/html_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ HTMLData

Returns a new instance of HTMLData.



7
8
9
10
11
12
13
14
# File 'lib/local_pac/proxy_pac/html_data.rb', line 7

def initialize(options = {})
  @header_css_class  = options.fetch(:header_css_class, nil)
  @element_css_class = options.fetch(:element_css_class)
  @element           = options.fetch(:element)
  @header            = options.fetch(:header, nil)
rescue KeyError => e
  raise ArgumentError, e.message
end

Instance Attribute Details

#elementObject (readonly)

Returns the value of attribute element.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def element
  @element
end

#element_css_classObject (readonly)

Returns the value of attribute element_css_class.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def element_css_class
  @element_css_class
end

#headerObject (readonly)

Returns the value of attribute header.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def header
  @header
end

#header_css_classObject (readonly)

Returns the value of attribute header_css_class.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def header_css_class
  @header_css_class
end

#html_dataObject (readonly)

Returns the value of attribute html_data.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def html_data
  @html_data
end

#html_styleObject (readonly)

Returns the value of attribute html_style.



5
6
7
# File 'lib/local_pac/proxy_pac/html_data.rb', line 5

def html_style
  @html_style
end