Class: Insika::Media::Part
- Inherits:
-
Data
- Object
- Data
- Insika::Media::Part
- Defined in:
- lib/insika/media.rb
Overview
A single content part, normalized.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text
18 19 20 |
# File 'lib/insika/media.rb', line 18 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type
18 19 20 |
# File 'lib/insika/media.rb', line 18 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url
18 19 20 |
# File 'lib/insika/media.rb', line 18 def url @url end |
Instance Method Details
#audio? ⇒ Boolean
19 |
# File 'lib/insika/media.rb', line 19 def audio? = type == "audio" |
#image? ⇒ Boolean
20 |
# File 'lib/insika/media.rb', line 20 def image? = type == "image" |
#text? ⇒ Boolean
21 |
# File 'lib/insika/media.rb', line 21 def text? = type == "text" |