Sha256: 2e61e3775cf0e00e8699c9828942aedca45df75105d290dddf6d1176a450f885
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
module LayerVault class Organization < LayerVault::Model class << self def for( organization ) resp = MultiJson.decode(LayerVault.client.organization( organization )) instance = build_associations(resp, :projects) instance.set_context(organization: organization) end end def create_project(project_name) LayerVault.client.create_project( context.organization, project_name ) end def delete_project(project_name) LayerVault.client.create_project( context.organization, project_name ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
layervault-0.1.2 | lib/layervault/organization.rb |
layervault-0.1.1 | lib/layervault/organization.rb |
layervault-0.1.0 | lib/layervault/organization.rb |