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