Sha256: e8d18235301d260378773e0467011737fec82b1ef72a8870d85d93e9f79aa5ef
Contents?: true
Size: 363 Bytes
Versions: 2
Compression:
Stored size: 363 Bytes
Contents
module FbGraph class AdImage < Node ATTRS = [ :hash, :url ] attr_accessor *ATTRS def initialize(identifier, attributes = {}) super set_attrs(attributes) end protected def set_attrs(attributes) ATTRS.each do |field| send("#{field}=", attributes[field.to_sym]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-2.7.17 | lib/fb_graph/ad_image.rb |
fb_graph-2.7.16 | lib/fb_graph/ad_image.rb |