Class: Readwise::HighlightUpdate

Inherits:
Struct
  • Object
show all
Defined in:
lib/readwise/highlight.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



70
71
72
# File 'lib/readwise/highlight.rb', line 70

def color
  @color
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



70
71
72
# File 'lib/readwise/highlight.rb', line 70

def location
  @location
end

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



70
71
72
# File 'lib/readwise/highlight.rb', line 70

def note
  @note
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



70
71
72
# File 'lib/readwise/highlight.rb', line 70

def text
  @text
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



70
71
72
# File 'lib/readwise/highlight.rb', line 70

def url
  @url
end

Instance Method Details

#serializeObject



79
80
81
# File 'lib/readwise/highlight.rb', line 79

def serialize
  to_h.compact
end