Class: LoopsSdk::Components
Class Method Summary collapse
Class Method Details
.get(component_id:) ⇒ Object
10 11 12 |
# File 'lib/loops_sdk/components.rb', line 10 def get(component_id:) make_request(method: :get, path: "v1/components/#{component_id}") end |
.list(perPage: 20, cursor: nil) ⇒ Object
6 7 8 |
# File 'lib/loops_sdk/components.rb', line 6 def list(perPage: 20, cursor: nil) make_request(method: :get, path: "v1/components", params: { perPage: perPage, cursor: cursor }) end |