Class: OTX::Pulses

Inherits:
Base
  • Object
show all
Defined in:
lib/otx_ruby/pulses.rb

Overview

Retrieve and parse into the appropriate object a pulse from the OTX System

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize

Constructor Details

This class inherits a constructor from OTX::Base

Instance Method Details

#get_pulse(id) ⇒ OTX::Pulse

Download an individually identified pulse and parse the output

Parameters:

  • id (String)

    The id value for the pulse to Download

Returns:


12
13
14
15
16
17
18
19
20
# File 'lib/otx_ruby/pulses.rb', line 12

def get_pulse(id)
    uri = "/api/v1/pulses/#{id}"

    json_data = get(uri)

    pulse = OTX::Pulse.new(json_data)

    return pulse
end