Class: ExcADG::Request::AddVertex

Inherits:
ExcADG::Request show all
Defined in:
lib/excadg/request.rb

Overview

request to make and start a new vertex

Instance Attribute Summary collapse

Attributes inherited from ExcADG::Request

#self

Instance Method Summary collapse

Methods inherited from ExcADG::Request

#to_s

Constructor Details

#initialize(payload:) ⇒ AddVertex

Returns a new instance of AddVertex.



51
52
53
54
55
56
# File 'lib/excadg/request.rb', line 51

def initialize payload:
  super()
  raise "Incorrent payload type: #{payload.class}" unless payload.is_a? Payload

  @payload = payload
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



49
50
51
# File 'lib/excadg/request.rb', line 49

def payload
  @payload
end