Method: Github::API.extract_class_name
- Defined in:
- lib/github_api/api.rb
.extract_class_name(name, options) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts class name from options
353 354 355 356 357 358 359 |
# File 'lib/github_api/api.rb', line 353 def self.extract_class_name(name, ) converted = .fetch(:full_name, name).to_s converted = converted.split('_').map(&:capitalize).join class_name = .fetch(:root, false) ? '': "#{self.name}::" class_name += converted class_name end |