Class: NgrokAPI::Models::EventTargetDatadog
- Inherits:
-
Object
- Object
- NgrokAPI::Models::EventTargetDatadog
- Defined in:
- lib/ngrokapi/models/event_target_datadog.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#ddsite ⇒ Object
readonly
Returns the value of attribute ddsite.
-
#ddtags ⇒ Object
readonly
Returns the value of attribute ddtags.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(client: nil, attrs: {}) ⇒ EventTargetDatadog
constructor
A new instance of EventTargetDatadog.
- #to_h ⇒ Object
- #to_s ⇒ Object
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_key ⇒ Object (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 |
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
8 9 10 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8 def attrs @attrs end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
8 9 10 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8 def client @client end |
#ddsite ⇒ Object (readonly)
Returns the value of attribute ddsite.
8 9 10 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8 def ddsite @ddsite end |
#ddtags ⇒ Object (readonly)
Returns the value of attribute ddtags.
8 9 10 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 8 def @ddtags end |
#service ⇒ Object (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_h ⇒ Object
32 33 34 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 32 def to_h @attrs.to_h end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/ngrokapi/models/event_target_datadog.rb', line 28 def to_s @attrs.to_s end |