Class: Paragraph::Markup
- Inherits:
-
Object
- Object
- Paragraph::Markup
- Defined in:
- lib/Models/Paragraph.rb
Instance Attribute Summary collapse
-
#anchorType ⇒ Object
Returns the value of attribute anchorType.
-
#end ⇒ Object
Returns the value of attribute end.
-
#href ⇒ Object
Returns the value of attribute href.
-
#linkMetadata ⇒ Object
Returns the value of attribute linkMetadata.
-
#start ⇒ Object
Returns the value of attribute start.
-
#type ⇒ Object
Returns the value of attribute type.
-
#userId ⇒ Object
Returns the value of attribute userId.
Instance Method Summary collapse
-
#initialize(json) ⇒ Markup
constructor
A new instance of Markup.
Constructor Details
#initialize(json) ⇒ Markup
Returns a new instance of Markup.
25 26 27 28 29 30 31 32 33 |
# File 'lib/Models/Paragraph.rb', line 25 def initialize(json) @type = json['type'] @start = json['start'] @end = json['end'] @href = json['href'] @anchorType = json['anchorType'] @userId = json['userId'] @linkMetadata = json['linkMetadata'] end |
Instance Attribute Details
#anchorType ⇒ Object
Returns the value of attribute anchorType.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def anchorType @anchorType end |
#end ⇒ Object
Returns the value of attribute end.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def end @end end |
#href ⇒ Object
Returns the value of attribute href.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def href @href end |
#linkMetadata ⇒ Object
Returns the value of attribute linkMetadata.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def linkMetadata @linkMetadata end |
#start ⇒ Object
Returns the value of attribute start.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def start @start end |
#type ⇒ Object
Returns the value of attribute type.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def type @type end |
#userId ⇒ Object
Returns the value of attribute userId.
24 25 26 |
# File 'lib/Models/Paragraph.rb', line 24 def userId @userId end |