Class: Browserbeam::MediaItem
- Inherits:
-
Struct
- Object
- Struct
- Browserbeam::MediaItem
- Defined in:
- lib/browserbeam/types.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#format ⇒ Object
Returns the value of attribute format.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
63 64 65 |
# File 'lib/browserbeam/types.rb', line 63 def data @data end |
#format ⇒ Object
Returns the value of attribute format
63 64 65 |
# File 'lib/browserbeam/types.rb', line 63 def format @format end |
#type ⇒ Object
Returns the value of attribute type
63 64 65 |
# File 'lib/browserbeam/types.rb', line 63 def type @type end |
Class Method Details
.from_hash(data) ⇒ Object
64 65 66 |
# File 'lib/browserbeam/types.rb', line 64 def self.from_hash(data) new(type: data["type"] || "", format: data["format"] || "", data: data["data"] || "") end |