Class: Commands::ShareReadWrite

Inherits:
Share show all
Defined in:
lib/gdsh/share_read_write.rb

Instance Attribute Summary

Attributes inherited from Share

#email_list

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Share

#initialize, parameters, #puts_shared_notification, #role_with_colours, #share_with_email, #share_with_email_list

Methods inherited from Command

#initialize

Methods included from DriveError

#drive_error_string

Methods included from CommandMixin

included

Constructor Details

This class inherits a constructor from Commands::Share

Class Method Details

.command_nameObject



6
7
8
# File 'lib/gdsh/share_read_write.rb', line 6

def self.command_name
  'share_read_write'
end

.functionObject



10
11
12
# File 'lib/gdsh/share_read_write.rb', line 10

def self.function
  'Shares a file with other users by email with read-write permission.'
end

Instance Method Details

#executeObject



14
15
16
# File 'lib/gdsh/share_read_write.rb', line 14

def execute
  share_with_email_list('writer')
end