lib/freshbooks/oauth2_rest_client.rb
# replace these REST::Resource methods so they support XML or JSON
replace these REST::Resource methods so they support XML or JSON
replace these REST :: Resource methods so they support XML or JSON
def attribute?(name)
      if @client.media_type.downcase == "application/json"
        return true if document[name]
      else
        return true if document.send(name) or document[name]
      end
      (@data.nil? and refresh) ? attribute?(name) : false
    end
def attribute? ( name ) if @client . media_type . downcase == "application/json" return true if document [ name ] else return true if document . send ( name ) or document [ name ] end ( @data . nil? and refresh ) ? attribute? ( name ) : false end
replace these REST::Resource methods so they support XML or JSON
replace these REST :: Resource methods so they support XML or JSON
name