class FbGraph2::Page
Public Class Methods
new(id, attributes = {})
click to toggle source
Calls superclass method
FbGraph2::Node::new
# File lib/fb_graph2/page.rb, line 56 def initialize(id, attributes = {}) super if attributes.include? :category_list self.category_list = attributes[:category_list].collect do |page_category| PageCategory.new page_category[:id], page_category end end if attributes.include? :context self.context = Struct::Context::PageContext.new attributes[:context] end if attributes.include? :parking self.parking = Struct::Parking.new attributes[:parking] end if attributes.include? :restaurant_services self.restaurant_services = Struct::RestaurantServices.new attributes[:restaurant_services] end if attributes.include? :restaurant_specialties self.restaurant_specialties = Struct::RestaurantSpecialties.new attributes[:restaurant_specialties] end if attributes.include? :payment_options self.payment_options = Struct::PaymentOptions.new attributes[:payment_options] end end