Sha256: 26c599b7852bfcf6b36ee557009ba581723ef40dcfc346e89bd62424ce7b2a5c

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

module Calabash
  module Android
    class AndroidComponent
      attr_reader :package_name, :class_name

      def initialize(package_name, class_name)
        @package_name = package_name
        @class_name = class_name
      end

      def self.from_json(json)
        self.new(json['packageName'], json['className'])
      end

      def to_json(*a)
        {
            'className' => class_name,
            'packageName' => package_name
        }.to_json
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calabash-android-0.5.9.pre2.intenthook1 lib/calabash-android/android_component.rb