Class: Roistat::Resources::Channels

Inherits:
Base
  • Object
show all
Defined in:
lib/roistat/resources/channels.rb,
sig/roistat.rbs

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Roistat::Resources::Base

Instance Method Details

#cost_add(**body) ⇒ Object

POST /project/analytics/source/cost/add

Parameters:

  • (Object)

Returns:

  • (Object)


15
16
17
# File 'lib/roistat/resources/channels.rb', line 15

def cost_add(**body)
  client.post("project/analytics/source/cost/add", body: body)
end

#cost_delete(id:) ⇒ Object

POST /project/analytics/source/cost/delete

Parameters:

  • id: (Integer, String)

Returns:

  • (Object)


25
26
27
# File 'lib/roistat/resources/channels.rb', line 25

def cost_delete(id:)
  client.post("project/analytics/source/cost/delete", body: {id: id})
end

#cost_list(**body) ⇒ Object

POST /project/analytics/source/cost/list

Parameters:

  • (Object)

Returns:

  • (Object)


10
11
12
# File 'lib/roistat/resources/channels.rb', line 10

def cost_list(**body)
  post_optional_body("project/analytics/source/cost/list", body)
end

#cost_update(**body) ⇒ Object

POST /project/analytics/source/cost/update

Parameters:

  • (Object)

Returns:

  • (Object)


20
21
22
# File 'lib/roistat/resources/channels.rb', line 20

def cost_update(**body)
  client.post("project/analytics/source/cost/update", body: body)
end

#source_list(**body) ⇒ Object

POST /project/analytics/source/list

Parameters:

  • (Object)

Returns:

  • (Object)


5
6
7
# File 'lib/roistat/resources/channels.rb', line 5

def source_list(**body)
  post_optional_body("project/analytics/source/list", body)
end