Class: Browserbeam::MapEntry
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::MapEntry
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#hint ⇒ Object
Returns the value of attribute hint.
-
#section ⇒ Object
Returns the value of attribute section.
-
#selector ⇒ Object
Returns the value of attribute selector.
Class Method Summary collapse
Instance Attribute Details
#hint ⇒ Object
Returns the value of attribute hint
21 22 23 |
# File 'lib/browserbeam/types.rb', line 21 def hint @hint end |
#section ⇒ Object
Returns the value of attribute section
21 22 23 |
# File 'lib/browserbeam/types.rb', line 21 def section @section end |
#selector ⇒ Object
Returns the value of attribute selector
21 22 23 |
# File 'lib/browserbeam/types.rb', line 21 def selector @selector end |
Class Method Details
.from_hash(data) ⇒ Object
22 23 24 |
# File 'lib/browserbeam/types.rb', line 22 def self.from_hash(data) new(section: data["section"] || "", selector: data["selector"] || "", hint: data["hint"] || "") end |