Class: LocalPac::ProxyPac::HTMLData
- Inherits:
-
Object
- Object
- LocalPac::ProxyPac::HTMLData
- Defined in:
- lib/local_pac/proxy_pac/html_data.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#element_css_class ⇒ Object
readonly
Returns the value of attribute element_css_class.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#header_css_class ⇒ Object
readonly
Returns the value of attribute header_css_class.
-
#html_data ⇒ Object
readonly
Returns the value of attribute html_data.
-
#html_style ⇒ Object
readonly
Returns the value of attribute html_style.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ HTMLData
constructor
A new instance of HTMLData.
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( = {}) @header_css_class = .fetch(:header_css_class, nil) @element_css_class = .fetch(:element_css_class) @element = .fetch(:element) @header = .fetch(:header, nil) rescue KeyError => e raise ArgumentError, e. end |
Instance Attribute Details
#element ⇒ Object (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_class ⇒ Object (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 |
#header ⇒ Object (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_class ⇒ Object (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_data ⇒ Object (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_style ⇒ Object (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 |