Class: Readwise::Tag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#tag_idObject

Returns the value of attribute tag_id

Returns:

  • (Object)

    the current value of tag_id



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

def tag_id
  @tag_id
end

Instance Method Details

#serializeObject



8
9
10
# File 'lib/readwise/tag.rb', line 8

def serialize
  to_h
end