Sha256: 82bf41a041e9ef6af42ad02a674c314ad8b458e02c482a469c34266c6cfd5f43
Contents?: true
Size: 919 Bytes
Versions: 18
Compression:
Stored size: 919 Bytes
Contents
module FbGraph class Education include Comparison attr_accessor :school, :degree, :year, :concentration, :classes, :type 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 @classes = [] if attributes[:classes] attributes[:classes].each do |klass| @classes << Page.new(klass.delete(:id), klass) end end @type = attributes[:type] end end end
Version data entries
18 entries across 18 versions & 1 rubygems