lib/ruby-lokalise-api/resources/base.rb
# Extracts all common attributes that resources have.
# Some of them may be absent in certain cases.
# rubocop:disable Naming/MemoizedInstanceVariableName
Extracts all common attributes that resources have.
Some of them may be absent in certain cases.
Extracts all common attributes that resources have . Some of them may be absent in certain cases .
def extract_common_attributes_for(content)
        return unless content
        @raw_data = content
        @project_id ||= content['project_id']
        @user_id ||= content['user_id']
        @team_id ||= content['team_id']
        @key_id ||= content['key_id']
        @branch ||= content['branch']
      end
def extract_common_attributes_for ( content ) return unless content @raw_data = content @project_id ||= content [ 'project_id' ] @user_id ||= content [ 'user_id' ] @team_id ||= content [ 'team_id' ] @key_id ||= content [ 'key_id' ] @branch ||= content [ 'branch' ] end
Extracts all common attributes that resources have.
Extracts all common attributes that resources have .
content