class Xooa::Response::Attr

Attributes

ecert[RW]
name[RW]
value[RW]

Public Class Methods

new(name, value, ecert) click to toggle source

Initialize Attr

@param name name of the attribute @param value value for the identity attribute @param ecert if the attribute requires ecert @return Attr

# File lib/xooa/response/IdentityResponse.rb, line 102
def initialize(name, value, ecert)
  @name = name
  @value = value
  @ecert = ecert
end

Public Instance Methods

display() click to toggle source

display the details for the Attr

# File lib/xooa/response/IdentityResponse.rb, line 109
def display
  puts("\t Name - #{@name}")
  puts("\t Value - #{@value}")
  puts("\t Ecert - #{@ecert}")
end
toJson() click to toggle source

convert the request into json form @return attrJson

# File lib/xooa/response/IdentityResponse.rb, line 117
def toJson
  json = "{\"name\" : \"" + name + "\", \"ecert\" : " + ecert.to_s + ", \"value\" : \"" + value + "\"}"
end