Class: Google::Apis::ChatV1::ChatSpaceLinkData

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Data for Chat space links.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChatSpaceLinkData

Returns a new instance of ChatSpaceLinkData.



688
689
690
# File 'lib/google/apis/chat_v1/classes.rb', line 688

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#messageString

The message of the linked Chat space resource. Format: spaces/space/ messages/message` Corresponds to the JSON propertymessage`

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/chat_v1/classes.rb', line 675

def message
  @message
end

#spaceString

The space of the linked Chat space resource. Format: spaces/space` Corresponds to the JSON propertyspace`

Returns:

  • (String)


680
681
682
# File 'lib/google/apis/chat_v1/classes.rb', line 680

def space
  @space
end

#threadString

The thread of the linked Chat space resource. Format: spaces/space/threads/ thread` Corresponds to the JSON propertythread`

Returns:

  • (String)


686
687
688
# File 'lib/google/apis/chat_v1/classes.rb', line 686

def thread
  @thread
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
696
697
# File 'lib/google/apis/chat_v1/classes.rb', line 693

def update!(**args)
  @message = args[:message] if args.key?(:message)
  @space = args[:space] if args.key?(:space)
  @thread = args[:thread] if args.key?(:thread)
end