class Projects::Model::Category

Attributes

id[RW]
name[RW]

Public Instance Methods

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

Returns

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

Returns

# File lib/projects/model/Category.rb, line 49
def getName
        return @name
end
setId(id) click to toggle source
  • Set the category id.

Parameters

  • id
    • ID of the category.

# File lib/projects/model/Category.rb, line 19
def setId(id)
        @id = id
end
setName(name) click to toggle source
  • Set the category name.

Parameters

  • name
    • Name of the category.

# File lib/projects/model/Category.rb, line 39
def setName(name)
        @name = name
end
toParamMAP() click to toggle source
  • Convert the Category object into HashMap object.

Returns

  • HashMap object.

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

        return requestBody
end