Class: Commands::ShareReadOnly
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
included
Class Method Details
.command_name ⇒ Object
6
7
8
|
# File 'lib/gdsh/share_read_only.rb', line 6
def self.command_name
'share_read_only'
end
|
.function ⇒ Object
10
11
12
|
# File 'lib/gdsh/share_read_only.rb', line 10
def self.function
'Shares a file with other users by email with read-only permission.'
end
|
Instance Method Details
#execute ⇒ Object
14
15
16
|
# File 'lib/gdsh/share_read_only.rb', line 14
def execute
share_with_email_list('reader')
end
|