Class: Arena::Block
- Includes:
- Connectable, Creatable
- Defined in:
- lib/arena/block.rb
Direct Known Subclasses
Attachment, Image, Link, Media, Text
Instance Attribute Summary collapse
-
#comment_count ⇒ Object
readonly
Returns the value of attribute comment_count.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#content_html ⇒ Object
readonly
Returns the value of attribute content_html.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#description_html ⇒ Object
readonly
Returns the value of attribute description_html.
-
#generated_title ⇒ Object
readonly
Returns the value of attribute generated_title.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Base
Instance Method Summary collapse
- #_base_class ⇒ Object
- #_class ⇒ Object
- #attachment ⇒ Object
- #embed ⇒ Object
- #image ⇒ Object
- #source ⇒ Object
Methods included from Connectable
#connected_at, #connected_by, #connected_by_different_user?, #connections, #is_block?, #user
Methods included from Creatable
Methods inherited from Base
Constructor Details
This class inherits a constructor from Arena::Base
Instance Attribute Details
#comment_count ⇒ Object (readonly)
Returns the value of attribute comment_count.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def comment_count @comment_count end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def content @content end |
#content_html ⇒ Object (readonly)
Returns the value of attribute content_html.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def content_html @content_html end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def description @description end |
#description_html ⇒ Object (readonly)
Returns the value of attribute description_html.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def description_html @description_html end |
#generated_title ⇒ Object (readonly)
Returns the value of attribute generated_title.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def generated_title @generated_title end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def id @id end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def state @state end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
15 16 17 |
# File 'lib/arena/block.rb', line 15 def title @title end |
Instance Method Details
#_base_class ⇒ Object
22 23 24 |
# File 'lib/arena/block.rb', line 22 def _base_class @_base_class ||= @attrs['base_class'] end |
#_class ⇒ Object
18 19 20 |
# File 'lib/arena/block.rb', line 18 def _class @_class ||= @attrs['class'] end |
#attachment ⇒ Object
34 35 36 |
# File 'lib/arena/block.rb', line 34 def @attachment ||= Arena::Entity::Attachment.new(@attrs['attachment']) if end |
#embed ⇒ Object
38 39 40 |
# File 'lib/arena/block.rb', line 38 def @embed ||= Arena::Entity::Embed.new(@attrs['embed']) if end |