Class: Browserbeam::InteractiveElement
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::InteractiveElement
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#role ⇒ Object
Returns the value of attribute role.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
9 10 11 |
# File 'lib/browserbeam/types.rb', line 9 def label @label end |
#ref ⇒ Object
Returns the value of attribute ref
9 10 11 |
# File 'lib/browserbeam/types.rb', line 9 def ref @ref end |
#role ⇒ Object
Returns the value of attribute role
9 10 11 |
# File 'lib/browserbeam/types.rb', line 9 def role @role end |
#tag ⇒ Object
Returns the value of attribute tag
9 10 11 |
# File 'lib/browserbeam/types.rb', line 9 def tag @tag end |
#value ⇒ Object
Returns the value of attribute value
9 10 11 |
# File 'lib/browserbeam/types.rb', line 9 def value @value end |
Class Method Details
.from_hash(data) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/browserbeam/types.rb', line 10 def self.from_hash(data) new( ref: data["ref"] || "", tag: data["tag"] || "", role: data["role"] || "", label: data["label"] || "", value: data["value"], ) end |