Class: Paragraph::Markup

Inherits:
Object
  • Object
show all
Defined in:
lib/Models/Paragraph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#anchorTypeObject

Returns the value of attribute anchorType.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def anchorType
  @anchorType
end

#endObject

Returns the value of attribute end.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def end
  @end
end

#hrefObject

Returns the value of attribute href.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def href
  @href
end

#linkMetadataObject

Returns the value of attribute linkMetadata.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def 
  @linkMetadata
end

#startObject

Returns the value of attribute start.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def start
  @start
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def type
  @type
end

#userIdObject

Returns the value of attribute userId.



25
26
27
# File 'lib/Models/Paragraph.rb', line 25

def userId
  @userId
end