class ObjectReference

Attributes

kind[RW]
name[RW]

Public Class Methods

new() click to toggle source
# File lib/base/v1/core/ObjectReference.rb, line 29
def initialize
  @name = nil
  @kind = nil
end

Public Instance Methods

get_hash() click to toggle source
# File lib/base/v1/core/ObjectReference.rb, line 34
def get_hash
  metaHash = Hash.new
  unless @name.nil?
    metaHash[:name] = @name
  end

  unless @kind.nil?
    metaHash[:kind] = @kind
  end

  return metaHash
end
get_json() click to toggle source
# File lib/base/v1/core/ObjectReference.rb, line 47
def get_json
  return JSON.generate(get_hash)
end