Class: FbGraph2::AppLinkHost
- Defined in:
- lib/fb_graph2/app_link_host.rb
Instance Attribute Summary
Attributes inherited from Node
#access_token, #id, #raw_attributes
Instance Method Summary collapse
-
#initialize(id, attributes = {}) ⇒ AppLinkHost
constructor
A new instance of AppLinkHost.
Methods inherited from Node
#authenticate, #destroy, #edge, #edges, fetch, #fetch, inherited, #update
Constructor Details
#initialize(id, attributes = {}) ⇒ AppLinkHost
Returns a new instance of AppLinkHost.
8 9 10 11 12 13 14 15 |
# 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 end |