Class: Telemetry::OpenSignal

Inherits:
Signal
  • Object
show all
Defined in:
lib/telemetry/open_signal.rb

Instance Attribute Summary collapse

Attributes inherited from Signal

#class_name, #timestamp, #type, #version

Instance Method Summary collapse

Methods inherited from Signal

#to_json

Constructor Details

#initializeOpenSignal

Returns a new instance of OpenSignal.



22
23
24
25
26
27
28
# File 'lib/telemetry/open_signal.rb', line 22

def initialize
  super
  @version = '1.0'
  @type = 'OpenSignal'
  @source = 'ruby'
  @class_name = 'com.zuora.telemetry.api.OpenSignal'
end

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



10
11
12
# File 'lib/telemetry/open_signal.rb', line 10

def fields
  @fields
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/telemetry/open_signal.rb', line 10

def name
  @name
end

#sourceObject (readonly)

Returns the value of attribute source.



10
11
12
# File 'lib/telemetry/open_signal.rb', line 10

def source
  @source
end

Instance Method Details

#attribute_mapObject



13
14
15
16
17
18
19
20
# File 'lib/telemetry/open_signal.rb', line 13

def attribute_map
  attributes = {
      :'name' => @name,
      :'source' => @source,
      :'fields' => @fields,
  }
  attributes.merge(super)
end