Class: MusicStory::Repository::BatchSFTP::SessionWrapper
- Inherits:
-
Object
- Object
- MusicStory::Repository::BatchSFTP::SessionWrapper
- Defined in:
- lib/music_story/repository/batch_sftp.rb
Instance Attribute Summary collapse
-
#sftp ⇒ Object
readonly
Returns the value of attribute sftp.
Instance Method Summary collapse
-
#initialize(repository, sftp_session) ⇒ SessionWrapper
constructor
A new instance of SessionWrapper.
- #method_missing(name, *args, &block) ⇒ Object
- #respond_to?(name) ⇒ Boolean
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
#sftp ⇒ Object (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
174 175 176 |
# File 'lib/music_story/repository/batch_sftp.rb', line 174 def respond_to?(name) @repository.respond_to?(name) end |