Class: Cloudenvoy::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudenvoy/topic.rb

Overview

A wrapper class for pub/sub topics. Used to wrap responses.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**kwargs) ⇒ Topic

Constructor

Parameters:

  • **kwargs (Hash)

    Arguments



14
15
16
17
# File 'lib/cloudenvoy/topic.rb', line 14

def initialize(**kwargs)
  @name = kwargs&.dig(:name)
  @original = kwargs&.dig(:original)
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/cloudenvoy/topic.rb', line 7

def name
  @name
end

#originalObject

Returns the value of attribute original.



7
8
9
# File 'lib/cloudenvoy/topic.rb', line 7

def original
  @original
end