Sha256: e41565fe4986a0b5e6bf6c8904d12b903c5d9da4e3ee08ef55962944b85d5a7d
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module Mavenlink class Workspace < Model include Mavenlink::Concerns::CustomFieldable include Mavenlink::Concerns::Indestructible # validates :due_date, format: 'YYYY-MM-DD' # ... # @todo Raise argument errors... # @todo Return invitation model? # @param invitation [Hash] # @option invitation [String] :full_name (required) the full name of the person being invited # @option invitation [String] :email_address (required) the email address of the person being invited # @option invitation [String] :invitee_role (required) the role for the invited user, either __maven__ (consultant role) or __buyer__ (client role) # @option invitation [String] :subject (optional) the subject message of the invitation email # @option invitation [String] :message (optional) the text content of the invitation email; if you don't provide this, your default will be used def invite(invitation) client.post("workspaces/#@id/invite", invitation: invitation) if persisted? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mavenlink-0.0.1 | lib/mavenlink/workspace.rb |