Sha256: 8b9748b6d1b1a049c08f8cbb0eb60fa94cca3cba5007792ef71e9bc398f06f98

Contents?: true

Size: 547 Bytes

Versions: 14

Compression:

Stored size: 547 Bytes

Contents

# -*- coding : utf-8 -*-
module Mushikago
  module Mitsubachi
    class Projects
      attr_reader :client

      def initialize client
        @client = client
      end

      def [] project_name
        Mitsubachi::Project.new(client, project_name)
      end

      def create project_name, options={}
        client.project_create(project_name, options)
      end

      def list
        client.project_list['projects'].map{|p| Mitsubachi.Project.new(client, p['name'])}
      end

      def each
        list.each
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mushikago-sdk-2.4.3 lib//mushikago/mitsubachi/projects.rb
mushikago-sdk-2.4.2 lib//mushikago/mitsubachi/projects.rb
mushikago-sdk-2.4.1 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-2.4 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-2.2 lib//mushikago/mitsubachi/projects.rb
mushikago-sdk-2.1.1 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-2.1.0 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-2.0.0 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.4.3 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.4.2 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.4.1 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.4.0 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.3.7 lib/mushikago/mitsubachi/projects.rb
mushikago-sdk-0.3.6 lib/mushikago/mitsubachi/projects.rb