Class: BB8::Voltos

Inherits:
Object
  • Object
show all
Defined in:
lib/bb8/voltos.rb

Defined Under Namespace

Classes: API, Bundle

Class Method Summary collapse

Class Method Details

.bundlesObject



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_bundleObject



9
10
11
# File 'lib/bb8/voltos.rb', line 9

def self.current_bundle
  BB8::Voltos::Bundle.new File.read('.bb8_bundle')
end