Sha256: ef8f03be69dc5cccd834ca122cd8c9ed9fa01ab03809601b900efa1834b833da
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
module Pairzone module Api class Pairzone < Base include PairzoneConnection extend PairzoneLifecycle attr :identity property :name property :owner property :collaborators property :ip property :project_name property :status connect :find_by_project_name, :get => '/pairzones/:name.json', :with => :name, :on => :class, :rescue => { 'ResourceNotFound' => nil } connect :create, :post => '/pairzones', :with => :pairzone, :on => :class def to_str "<%= color('This Pairzone: #{name}', CYAN + BOLD) %>\nOwner: #{owner}\nCollaborators: #{collaborators.join(', ')}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pairzone-0.0.1 | lib/pairzone/api/pairzone.rb |