class Tenios::Blocks::RoutingPlan

Constants

BLOCK_TYPE

Public Class Methods

new(routing_plan:) click to toggle source
# File lib/tenios/blocks/routing_plan.rb, line 8
def initialize(routing_plan:)
  raise 'routing_plan is required' if routing_plan.nil?

  @routing_plan = routing_plan
end

Public Instance Methods

as_json(*) click to toggle source
# File lib/tenios/blocks/routing_plan.rb, line 14
def as_json(*)
  {
    blockType: BLOCK_TYPE,
    routingplanName: @routing_plan
  }
end