class Projects::Model::Folder

Attributes

id[RW]
isDiscussion[RW]
name[RW]
url[RW]

Public Instance Methods

getId() click to toggle source
  • Get the folder id.

Returns

# File lib/projects/model/Folder.rb, line 29
def getId
        return @id
end
getName() click to toggle source
  • Get the folder name.

Returns

# File lib/projects/model/Folder.rb, line 49
def getName
        return @name
end
getURL() click to toggle source
  • Get the folder URL.

Returns

# File lib/projects/model/Folder.rb, line 89
def getURL
        return @url
end
setId(id) click to toggle source
  • Set the folder id.

Parameters

  • id
    • ID of the folder.

# File lib/projects/model/Folder.rb, line 19
def setId(id)
        @id = id
end
setIsDicussion(isDiscussion) click to toggle source
  • Set the folder is in discussion or not.

Parameters

  • isDiscussion
    • Is the folder is in discussion or not.

# File lib/projects/model/Folder.rb, line 59
def setIsDicussion(isDiscussion)
        @isDiscussion = isDiscussion
end
setName(name) click to toggle source
  • Set the folder name.

Parameters

  • name
    • Name of the folder.

# File lib/projects/model/Folder.rb, line 39
def setName(name)
        @name = name
end
setURL(url) click to toggle source
  • Set the folder URL.

Parameters

  • url
    • URL for the folder.

# File lib/projects/model/Folder.rb, line 79
def setURL(url)
        @url = url
end
toParamMAP() click to toggle source
  • Convert the Folder object into HashMap.

Returns

  • HashMap object.

# File lib/projects/model/Folder.rb, line 99
def toParamMAP
        requestBody = Hash.new
        
        if name != nil
                requestBody["name"] = name
        end
        
        return requestBody
end