Class: CloudAlign::Project
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- CloudAlign::Project
- Defined in:
- lib/cloudalign/project.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from BaseEntity
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseEntity
Constructor Details
This class inherits a constructor from CloudAlign::BaseEntity
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/cloudalign/project.rb', line 3 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/cloudalign/project.rb', line 3 def name @name end |
Class Method Details
Instance Method Details
#memberships ⇒ Object
23 24 25 |
# File 'lib/cloudalign/project.rb', line 23 def memberships CloudAlign::Membership.find_memberships(id) end |
#upload_file(path) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/cloudalign/project.rb', line 15 def upload_file(path) post_data = Client.get_json("/projects/#{@id}/upload_file") upload_url = post_data.delete("url") post_data[:file] = ::File.new(path, 'rb') Client.post_for_upload(upload_url, post_data) end |