Class: NgrokAPI::Models::EventTargetDatadog

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/event_target_datadog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, attrs: {}) ⇒ EventTargetDatadog

Returns a new instance of EventTargetDatadog.



15
16
17
18
19
20
21
22
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 15

def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @api_key = @attrs['api_key']
  @ddtags = @attrs['ddtags']
  @service = @attrs['service']
  @ddsite = @attrs['ddsite']
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def api_key
  @api_key
end

#attrsObject (readonly)

Returns the value of attribute attrs.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def attrs
  @attrs
end

#clientObject (readonly)

Returns the value of attribute client.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def client
  @client
end

#ddsiteObject (readonly)

Returns the value of attribute ddsite.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def ddsite
  @ddsite
end

#ddtagsObject (readonly)

Returns the value of attribute ddtags.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def ddtags
  @ddtags
end

#serviceObject (readonly)

Returns the value of attribute service.



8
9
10
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8

def service
  @service
end

Instance Method Details

#==(other) ⇒ Object



24
25
26
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 24

def ==(other)
  @attrs == other.attrs
end

#to_hObject



32
33
34
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 32

def to_h
  @attrs.to_h
end

#to_sObject



28
29
30
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 28

def to_s
  @attrs.to_s
end