Class: Readwise::DocumentCreate

Inherits:
Struct
  • Object
show all
Defined in:
lib/readwise/document.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



118
119
120
# File 'lib/readwise/document.rb', line 118

def author
  @author
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



118
119
120
# File 'lib/readwise/document.rb', line 118

def category
  @category
end

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



118
119
120
# File 'lib/readwise/document.rb', line 118

def html
  @html
end

#image_urlObject

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



118
119
120
# File 'lib/readwise/document.rb', line 118

def image_url
  @image_url
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



118
119
120
# File 'lib/readwise/document.rb', line 118

def location
  @location
end

#notesObject

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



118
119
120
# File 'lib/readwise/document.rb', line 118

def notes
  @notes
end

#published_dateObject

Returns the value of attribute published_date

Returns:

  • (Object)

    the current value of published_date



118
119
120
# File 'lib/readwise/document.rb', line 118

def published_date
  @published_date
end

#saved_usingObject

Returns the value of attribute saved_using

Returns:

  • (Object)

    the current value of saved_using



118
119
120
# File 'lib/readwise/document.rb', line 118

def saved_using
  @saved_using
end

#should_clean_htmlObject

Returns the value of attribute should_clean_html

Returns:

  • (Object)

    the current value of should_clean_html



118
119
120
# File 'lib/readwise/document.rb', line 118

def should_clean_html
  @should_clean_html
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



118
119
120
# File 'lib/readwise/document.rb', line 118

def summary
  @summary
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



118
119
120
# File 'lib/readwise/document.rb', line 118

def tags
  @tags
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



118
119
120
# File 'lib/readwise/document.rb', line 118

def title
  @title
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



118
119
120
# File 'lib/readwise/document.rb', line 118

def url
  @url
end

Instance Method Details

#serializeObject



136
137
138
# File 'lib/readwise/document.rb', line 136

def serialize
  to_h.compact
end