Class: BB8::Voltos
- Inherits:
-
Object
- Object
- BB8::Voltos
- Defined in:
- lib/bb8/voltos.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.bundles ⇒ Object
2 3 4 5 6 7 |
# File 'lib/bb8/voltos.rb', line 2 def self.bundles api = BB8::Voltos::API.new api.get("bundles").collect { |hash| BB8::Voltos::Bundle.new hash['name'], api } end |
.current_bundle ⇒ Object
9 10 11 |
# File 'lib/bb8/voltos.rb', line 9 def self.current_bundle BB8::Voltos::Bundle.new File.read('.bb8_bundle') end |