Sha256: 0568ae83a6af043d67b8fcdc51ccffa736cb209fcede3211de067ba4969d4c44

Contents?: true

Size: 482 Bytes

Versions: 9

Compression:

Stored size: 482 Bytes

Contents

module Acouchi
  class Configuration
    attr_accessor :target_package, :activity, :project_path, :apk

    def self.from_json json
      require "json"
      json = JSON.parse(json)
      configuration = Configuration.new
      configuration.target_package = json["target_package"]
      configuration.activity       = json["activity"]
      configuration.project_path   = json["project_path"]
      configuration.apk            = json["apk"]
      configuration
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
acouchi-0.0.9 lib/acouchi/configuration.rb
acouchi-0.0.8 lib/acouchi/configuration.rb
acouchi-0.0.7 lib/acouchi/configuration.rb
acouchi-0.0.6 lib/acouchi/configuration.rb
acouchi-0.0.5 lib/acouchi/configuration.rb
acouchi-0.0.4 lib/acouchi/configuration.rb
acouchi-0.0.3 lib/acouchi/configuration.rb
acouchi-0.0.2 lib/acouchi/configuration.rb
acouchi-0.0.1 lib/acouchi/configuration.rb