Class: CloudFile::Services
- Includes:
- FromHash
- Defined in:
- lib/cloud_file/services.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.method_missing(sym, *args, &b) ⇒ Object
20 21 22 |
# File 'lib/cloud_file/services.rb', line 20 def method_missing(sym,*args,&b) instance.send(sym,*args,&b) end |
Instance Method Details
#<<(s) ⇒ Object
6 7 8 |
# File 'lib/cloud_file/services.rb', line 6 def <<(s) self.list << s end |
#service_class(provider) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/cloud_file/services.rb', line 10 def service_class(provider) res = list.find { |x| x.provider.to_s == provider.to_s } if !res raise "no class found for #{provider}, ops are " + list.map { |x| x.provider }.inspect end res end |