Class: Phraseapp::Rest::Resource::Project

Inherits:
Object
  • Object
show all
Includes:
List
Defined in:
lib/phraseapp-rest/resource/project.rb

Instance Method Summary collapse

Methods included from List

#list

Constructor Details

#initialize(client:) ⇒ Project

Returns a new instance of Project.



12
13
14
15
# File 'lib/phraseapp-rest/resource/project.rb', line 12

def initialize(client:)
  @client = client
  @path = '/projects'
end

Instance Method Details

#get(id:) ⇒ Object



17
18
19
# File 'lib/phraseapp-rest/resource/project.rb', line 17

def get(id:)
  Parser.parse(@client.get("#{@path}/#{id}"))
end