Class: Applinks::Builder::AndroidBlock

Inherits:
AppBlock show all
Defined in:
lib/applinks/builder.rb

Instance Attribute Summary collapse

Attributes inherited from AppBlock

#app_name, #versioned

Attributes inherited from MetaBlock

#url

Instance Method Summary collapse

Constructor Details

#initialize(hsh, versioned) ⇒ AndroidBlock

Returns a new instance of AndroidBlock.



110
111
112
113
# File 'lib/applinks/builder.rb', line 110

def initialize hsh, versioned
  super
  @package = hsh[:package] if hsh.has_key?(:package)
end

Instance Attribute Details

#packageObject (readonly)

Returns the value of attribute package.



108
109
110
# File 'lib/applinks/builder.rb', line 108

def package
  @package
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/applinks/builder.rb', line 115

def valid?
  !@package.nil?
end