Sha256: 89c052095baa508df6261985352275ecde4033f2dc9791faf27176882ab21a30
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
require 'phone_gap/build/version' require 'phone_gap/build/credentials' require 'phone_gap/build/app_factory' require 'phone_gap/build/app' require 'phone_gap/build/rest_resource' require 'phone_gap/build/creatable' require 'httparty' module PhoneGap module Build def self.credentials(credentials) @credentials = Credentials.instance.set(credentials) end def self.apps http_response = HTTParty.get("https://build.phonegap.com/api/v1/apps?auth_token=#{@credentials.token}") parsed_response = JSON.parse(http_response.body) AppFactory.create_many(parsed_response) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phone_gap-build-0.3.0 | lib/phone_gap/build.rb |
phone_gap-build-0.2.0 | lib/phone_gap/build.rb |