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

Version Path
fb_graph-1.2.1 lib/fb_graph/education.rb
fb_graph-1.2.0 lib/fb_graph/education.rb
fb_graph-1.1.7 lib/fb_graph/education.rb
fb_graph-1.1.6 lib/fb_graph/education.rb
fb_graph-1.1.5 lib/fb_graph/education.rb
fb_graph-1.1.4 lib/fb_graph/education.rb
fb_graph-1.1.3 lib/fb_graph/education.rb
fb_graph-1.1.2 lib/fb_graph/education.rb
fb_graph-1.1.1 lib/fb_graph/education.rb
fb_graph-1.1.0 lib/fb_graph/education.rb
fb_graph-1.0.7 lib/fb_graph/education.rb
fb_graph-1.0.6 lib/fb_graph/education.rb
fb_graph-1.0.5 lib/fb_graph/education.rb
palidanx-fb_graph-1.0.4 lib/fb_graph/education.rb
fb_graph-1.0.4 lib/fb_graph/education.rb
fb_graph-1.0.3 lib/fb_graph/education.rb
fb_graph-1.0.2 lib/fb_graph/education.rb