Class: Localeui::Project
- Inherits:
-
Object
- Object
- Localeui::Project
- Defined in:
- lib/localeui/resources/project.rb
Class Method Summary collapse
Class Method Details
.info ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/localeui/resources/project.rb', line 5 def self.info # show project informations raise NoProjectError, 'No project initialised' if Localeui.project_id.nil? || Localeui.project_id.empty? response = Localeui::Http.request( method: :get, endpoint: "projects/#{Localeui.project_id}" ) Localeui::Utils.logger.info "Project '#{response.body['api_id']}' informations were successfully requested" response end |