Sha256: cbcdd46bfed603fe56c10c77c6a080ab73ebf4374b9261d1e224f04b75204771

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

# This file is part of KalibroClient
# Copyright (C) 2013  it's respectives authors (please see the AUTHORS file)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

module KalibroClient
  module Entities
    module Processor
      class Project < KalibroClient::Entities::Processor::Base

        attr_accessor :id, :name, :description

        def id=(value)
          @id = value.to_i
        end

        def repositories
          Repository.create_objects_array_from_hash(self.class.request(':id/repositories', {id: id}, :get))
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kalibro_client-5.0.0 lib/kalibro_client/entities/processor/project.rb
kalibro_client-4.0.0 lib/kalibro_client/entities/processor/project.rb
kalibro_client-4.0.0.alpha1 lib/kalibro_client/entities/processor/project.rb