Class: Readwise::Review

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completedObject

Returns the value of attribute completed

Returns:

  • (Object)

    the current value of completed



2
3
4
# File 'lib/readwise/review.rb', line 2

def completed
  @completed
end

#highlightsObject

Returns the value of attribute highlights

Returns:

  • (Object)

    the current value of highlights



2
3
4
# File 'lib/readwise/review.rb', line 2

def highlights
  @highlights
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/readwise/review.rb', line 2

def id
  @id
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



2
3
4
# File 'lib/readwise/review.rb', line 2

def url
  @url
end

Instance Method Details

#completed?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/readwise/review.rb', line 9

def completed?
  completed
end

#serializeObject



13
14
15
# File 'lib/readwise/review.rb', line 13

def serialize
  to_h.compact
end