lib/ruby-lokalise-api/utils/attribute_helpers.rb
def attributes_for(klass)
        @attributes ||= YAML.load_file(File.expand_path('../data/attributes.json', __dir__)).freeze

        name = unify klass.name.snakecase
        @attributes[name]
      end
# Loads attributes for the given resource based on its name
#
# @return [Array<String>]
Loads attributes for the given resource based on its name
Loads attributes for the given resource based on its name
def attributes_for(klass)
        @attributes ||= YAML.load_file(File.expand_path('../data/attributes.json', __dir__)).freeze
        name = unify klass.name.snakecase
        @attributes[name]
      end
def attributes_for ( klass ) @attributes ||= YAML . load_file ( File . expand_path ( '../data/attributes.json' , __dir__ ) ) . freeze name = unify klass . name . snakecase @attributes [ name ] end
Loads attributes for the given resource based on its name
Loads attributes for the given resource based on its name
None
Array<String>
klass