Class: ReactorSDK::Resources::Note

Inherits:
BaseResource show all
Defined in:
lib/reactor_sdk/resources/note.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#attributes, #id, #meta, #relationships, #type

Instance Method Summary collapse

Methods inherited from BaseResource

#==, #[], attribute, #initialize, #relationship_data, #relationship_id, #relationship_ids, #to_h

Constructor Details

This class inherits a constructor from ReactorSDK::Resources::BaseResource

Instance Method Details

#author_display_nameString

Returns Display name of the note author.

Returns:

  • (String)

    Display name of the note author



21
# File 'lib/reactor_sdk/resources/note.rb', line 21

attribute :author_display_name

#author_emailString

Returns Email of the note author.

Returns:

  • (String)

    Email of the note author



24
# File 'lib/reactor_sdk/resources/note.rb', line 24

attribute :author_email

#created_atString

Returns ISO8601 timestamp when the note was created.

Returns:

  • (String)

    ISO8601 timestamp when the note was created



27
# File 'lib/reactor_sdk/resources/note.rb', line 27

attribute :created_at

#inspectString

Returns Human-readable representation.

Returns:

  • (String)

    Human-readable representation



32
33
34
# File 'lib/reactor_sdk/resources/note.rb', line 32

def inspect
  "#<ReactorSDK::Resources::Note id=#{id.inspect} text=#{text.inspect}>"
end

#textString

Returns Note body text.

Returns:

  • (String)

    Note body text



18
# File 'lib/reactor_sdk/resources/note.rb', line 18

attribute :text