Sha256: 07e61e792c2016d6274d3f31534e5f5b5bcd7f5f07154a821371bb6f56d81d6a
Contents?: true
Size: 696 Bytes
Versions: 6
Compression:
Stored size: 696 Bytes
Contents
module FbGraph class Education include Comparison attr_accessor :school, :degree, :year, :concentration def initialize(attributes = {}) if (school = attributes[:school]) @school = Page.new(school.delete(:id), school) end if (degree = attributes[:degree]) @degree = Page.new(degree.delete(:id), degree) end if (year = attributes[:year]) @year = Page.new(year.delete(:id), year) end @concentration = [] if attributes[:concentration] attributes[:concentration].each do |concentration| @concentration << Page.new(concentration.delete(:id), concentration) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems