Class: MusicStory::Repository::BatchSFTP::SessionWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/music_story/repository/batch_sftp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository, sftp_session) ⇒ SessionWrapper

Returns a new instance of SessionWrapper.



165
166
167
168
# File 'lib/music_story/repository/batch_sftp.rb', line 165

def initialize(repository, sftp_session)
  @repository = repository
  @sftp = sftp_session
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



170
171
172
# File 'lib/music_story/repository/batch_sftp.rb', line 170

def method_missing(name, *args, &block)
  @repository.send(name, *([self] + args), &block)
end

Instance Attribute Details

#sftpObject (readonly)

Returns the value of attribute sftp.



163
164
165
# File 'lib/music_story/repository/batch_sftp.rb', line 163

def sftp
  @sftp
end

Instance Method Details

#respond_to?(name) ⇒ Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/music_story/repository/batch_sftp.rb', line 174

def respond_to?(name)
  @repository.respond_to?(name)
end