Class: Phonegap::Apps

Inherits:
Object
  • Object
show all
Defined in:
lib/phonegap-api/apps.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_data) ⇒ Apps

Returns a new instance of Apps.



4
5
6
7
8
9
10
# File 'lib/phonegap-api/apps.rb', line 4

def initialize(api_data)
  @apps = []
  api_data['apps'].each do |app|
    @apps << App.new(app)
  end
  @link = api_data['link']
end