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.
26 27 28 29 30 31 32 33 34 |
# File 'lib/Models/Paragraph.rb', line 26 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.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def anchorType @anchorType end |
#end ⇒ Object
Returns the value of attribute end.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def end @end end |
#href ⇒ Object
Returns the value of attribute href.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def href @href end |
#linkMetadata ⇒ Object
Returns the value of attribute linkMetadata.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def linkMetadata @linkMetadata end |
#start ⇒ Object
Returns the value of attribute start.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def start @start end |
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def type @type end |
#userId ⇒ Object
Returns the value of attribute userId.
25 26 27 |
# File 'lib/Models/Paragraph.rb', line 25 def userId @userId end |