class Kongfigure::Resources::Target

Attributes

target[RW]
weight[RW]

Public Class Methods

build(hash) click to toggle source
# File lib/kongfigure/resources/target.rb, line 5
def self.build(hash)
  target        = new(hash["id"], hash["kongfigure_ignore_fields"])
  target.target = hash["target"]
  target.weight = hash["weight"]
  target
end

Public Instance Methods

api_attributes() click to toggle source
# File lib/kongfigure/resources/target.rb, line 16
def api_attributes
  {
    "target" => target,
    "weight" => weight
  }.compact
end
api_name() click to toggle source
# File lib/kongfigure/resources/target.rb, line 12
def api_name
  "targets"
end