class FbGraph2::AppLinkHost

Public Class Methods

new(id, attributes = {}) click to toggle source
Calls superclass method
# File lib/fb_graph2/app_link_host.rb, line 8
def initialize(id, attributes = {})
  super
  [:ios, :iphone, :ipad, :android, :windows_phone].each do |link_attr|
    if attributes.include? link_attr
      self.send :"#{link_attr}=", collect_links(attributes, link_attr)
    end
  end
  if attributes.include? :web
    self.web = Struct::AppLink::Web.new attributes[:web]
  end
end

Private Instance Methods