class SDM::Gateway
Gateway represents a StrongDM CLI installation running in gateway mode.
def initialize(
def initialize( id: nil, name: nil, state: nil, listen_address: nil, bind_address: nil, tags: nil ) if id != nil @id = id end if name != nil @name = name end if state != nil @state = state end if listen_address != nil @listen_address = listen_address end if bind_address != nil @bind_address = bind_address end if tags != nil @tags = tags end end
def to_json(options = {})
def to_json(options = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end