Class: Applinks::Builder::IOSBlock

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) ⇒ IOSBlock

Returns a new instance of IOSBlock.



98
99
100
101
# File 'lib/applinks/builder.rb', line 98

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

Instance Attribute Details

#app_store_idObject (readonly)

Returns the value of attribute app_store_id.



96
97
98
# File 'lib/applinks/builder.rb', line 96

def app_store_id
  @app_store_id
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


103
104
105
# File 'lib/applinks/builder.rb', line 103

def valid?
  !@url.nil?
end