builder/extra/cluster-home/lib/ruby/tungsten/api.rb
def description (display_mode = :text)
        if display_mode == :text
            return self.to_s
        end
        if display_mode == :json
            return JSON.generate(self.to_hash)
        elsif display_mode == :hash
            return self.to_hash
        else
            raise SyntaxError, "No suitable display mode selected"
        end
    end
#
# Returns a description of the API call, according to the display_mode:
# * :text (default) is a single line of text according to @@template
# * :hash is a Ruby hash of the API call contents
# * :json is a JSON representation of the above hash
#
Returns a description of the API call, according to the display_mode:
:text (default) is a single line of text according to @@template
:hash is a Ruby hash of the API call contents
:json is a JSON representation of the above hash
Returns a description of the API call according to the display_mode : : text ( default ) is a single line of text according to @@template : hash is a Ruby hash of the API call contents : json is a JSON representation of the above hash
def description (display_mode = :text)
        if display_mode == :text
            return self.to_s
        end
        if display_mode == :json
            return JSON.generate(self.to_hash)
        elsif display_mode == :hash
            return self.to_hash
        else
            raise SyntaxError, "No suitable display mode selected"
        end
    end
def description ( display_mode = :text ) if display_mode == :text return self . to_s end if display_mode == :json return JSON . generate ( self . to_hash ) elsif display_mode == :hash return self . to_hash else raise SyntaxError , "No suitable display mode selected" end end
Returns a description of the API call, according to the display_mode:
 :text (default) is a single line of text according to @@template
 :hash is a Ruby hash of the API call contents
 :json is a JSON representation of the above hash
Returns a description of the API call according to the display_mode : : text ( default ) is a single line of text according to @@template : hash is a Ruby hash of the API call contents : json is a JSON representation of the above hash
display_mode