Sha256: 3861084388e3e96ba8787e07acfc695ffdcb398fd9d340a0afd78b3e29edd144
Contents?: true
Size: 619 Bytes
Versions: 5
Compression:
Stored size: 619 Bytes
Contents
module FbGraph class Project < Page attr_accessor :start_date, :end_date def initialize(identifier, attributes = {}) super if attributes[:start_date] year, month = attributes[:start_date].split('-').collect(&:to_i) @start_date = if month == 0 Date.new(year) else Date.new(year, month) end end if attributes[:end_date] year, month = attributes[:end_date].split('-').collect(&:to_i) @end_date = if month == 0 Date.new(year) else Date.new(year, month) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems