Class: Readwise::HighlightCreate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def author
  @author
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def category
  @category
end

#highlight_urlObject

Returns the value of attribute highlight_url

Returns:

  • (Object)

    the current value of highlight_url



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def highlight_url
  @highlight_url
end

#highlighted_atObject

Returns the value of attribute highlighted_at

Returns:

  • (Object)

    the current value of highlighted_at



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def highlighted_at
  @highlighted_at
end

#image_urlObject

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def image_url
  @image_url
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def location
  @location
end

#location_typeObject

Returns the value of attribute location_type

Returns:

  • (Object)

    the current value of location_type



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def location_type
  @location_type
end

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def note
  @note
end

#source_typeObject

Returns the value of attribute source_type

Returns:

  • (Object)

    the current value of source_type



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def source_type
  @source_type
end

#source_urlObject

Returns the value of attribute source_url

Returns:

  • (Object)

    the current value of source_url



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def source_url
  @source_url
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def text
  @text
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



48
49
50
# File 'lib/readwise/highlight.rb', line 48

def title
  @title
end

Instance Method Details

#serializeObject



65
66
67
# File 'lib/readwise/highlight.rb', line 65

def serialize
  to_h.compact
end