Sha256: a77048942c43891778c22a2d6b0406ad58619419f98c81f3cfb6377ef521be22
Contents?: true
Size: 618 Bytes
Versions: 16
Compression:
Stored size: 618 Bytes
Contents
module LinkedIn class Base attr_reader :attributes def initialize(attributes={}) @attributes = Hashie::Mash.new attributes end def method_missing(method, *args, &block) return @attributes.send(method, *args, &block) if @attributes.respond_to?(method) super end def respond_to?(method, include_all=false) return true if @attributes.respond_to method, include_all super end def client Base.client end def self.client @@client ||= self.reset_client end def self.reset_client @@client = LinkedIn.new end end end
Version data entries
16 entries across 16 versions & 1 rubygems