Class: Browserbeam::MapEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/browserbeam/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#hintObject

Returns the value of attribute hint

Returns:

  • (Object)

    the current value of hint



21
22
23
# File 'lib/browserbeam/types.rb', line 21

def hint
  @hint
end

#sectionObject

Returns the value of attribute section

Returns:

  • (Object)

    the current value of section



21
22
23
# File 'lib/browserbeam/types.rb', line 21

def section
  @section
end

#selectorObject

Returns the value of attribute selector

Returns:

  • (Object)

    the current value of 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