Class: Applinks::Builder::WindowsPhoneBlock

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



122
123
124
125
# File 'lib/applinks/builder.rb', line 122

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

Instance Attribute Details

#app_idObject (readonly)

Returns the value of attribute app_id.



120
121
122
# File 'lib/applinks/builder.rb', line 120

def app_id
  @app_id
end

Instance Method Details

#valid?Boolean



127
128
129
# File 'lib/applinks/builder.rb', line 127

def valid?
  !@url.nil?
end