Class: Roistat::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, project: nil, project_required: true, base_url: nil, timeout: nil, open_timeout: nil, binary_tempfile_threshold: nil) ⇒ Client

Returns a new instance of Client.



21
# File 'sig/roistat.rbs', line 21

def initialize: (

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



7
8
9
# File 'lib/roistat/client.rb', line 7

def api_key
  @api_key
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



7
8
9
# File 'lib/roistat/client.rb', line 7

def base_url
  @base_url
end

#binary_tempfile_thresholdObject (readonly)

Returns the value of attribute binary_tempfile_threshold.



7
8
9
# File 'lib/roistat/client.rb', line 7

def binary_tempfile_threshold
  @binary_tempfile_threshold
end

#open_timeoutObject (readonly)

Returns the value of attribute open_timeout.



7
8
9
# File 'lib/roistat/client.rb', line 7

def open_timeout
  @open_timeout
end

#projectObject (readonly)

Returns the value of attribute project.



7
8
9
# File 'lib/roistat/client.rb', line 7

def project
  @project
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



7
8
9
# File 'lib/roistat/client.rb', line 7

def timeout
  @timeout
end

Instance Method Details

#accessRoistat::Resources::Access



37
# File 'sig/roistat.rbs', line 37

def access: () -> Roistat::Resources::Access

#analyticsRoistat::Resources::Analytics



49
# File 'sig/roistat.rbs', line 49

def analytics: () -> Roistat::Resources::Analytics

#billingRoistat::Resources::Billing



40
# File 'sig/roistat.rbs', line 40

def billing: () -> Roistat::Resources::Billing

#calltrackingRoistat::Resources::Calltracking



41
# File 'sig/roistat.rbs', line 41

def calltracking: () -> Roistat::Resources::Calltracking

#channelsRoistat::Resources::Channels



50
# File 'sig/roistat.rbs', line 50

def channels: () -> Roistat::Resources::Channels

#clientsRoistat::Resources::Clients



46
# File 'sig/roistat.rbs', line 46

def clients: () -> Roistat::Resources::Clients

#dashboardsRoistat::Resources::Dashboards



38
# File 'sig/roistat.rbs', line 38

def dashboards: () -> Roistat::Resources::Dashboards

#emailtrackingRoistat::Resources::Emailtracking



54
# File 'sig/roistat.rbs', line 54

def emailtracking: () -> Roistat::Resources::Emailtracking

#eventsRoistat::Resources::Events



48
# File 'sig/roistat.rbs', line 48

def events: () -> Roistat::Resources::Events

#get(path, params: {}, parse: :json) ⇒ Object

Parameters:

  • (String)
  • params: (Hash[Symbol | String, untyped]) (defaults to: {})
  • parse: (Symbol) (defaults to: :json)

Returns:

  • (Object)


31
# File 'sig/roistat.rbs', line 31

def get: (String, ?params: Hash[Symbol | String, untyped], ?parse: Symbol) -> untyped

#indicatorsRoistat::Resources::Indicators



52
# File 'sig/roistat.rbs', line 52

def indicators: () -> Roistat::Resources::Indicators

#lead_hunterRoistat::Resources::LeadHunter



53
# File 'sig/roistat.rbs', line 53

def lead_hunter: () -> Roistat::Resources::LeadHunter

#leadsRoistat::Resources::Leads



44
# File 'sig/roistat.rbs', line 44

def leads: () -> Roistat::Resources::Leads

#managersRoistat::Resources::Managers



45
# File 'sig/roistat.rbs', line 45

def managers: () -> Roistat::Resources::Managers

#mediaplanRoistat::Resources::Mediaplan



56
# File 'sig/roistat.rbs', line 56

def mediaplan: () -> Roistat::Resources::Mediaplan

#ordersRoistat::Resources::Orders



42
# File 'sig/roistat.rbs', line 42

def orders: () -> Roistat::Resources::Orders

#post(path, params: {}, body: nil, parse: :json) ⇒ Object

Parameters:

  • (String)
  • params: (Hash[Symbol | String, untyped]) (defaults to: {})
  • body: (Object) (defaults to: nil)
  • parse: (Symbol) (defaults to: :json)

Returns:

  • (Object)


32
# File 'sig/roistat.rbs', line 32

def post: (String, ?params: Hash[Symbol | String, untyped], ?body: untyped, ?parse: Symbol) -> untyped

#post_multipart(path, params: {}, form: {}, parse: :json) ⇒ Object

Parameters:

  • (String)
  • params: (Hash[Symbol | String, untyped]) (defaults to: {})
  • form: (Hash[Symbol | String, untyped]) (defaults to: {})
  • parse: (Symbol) (defaults to: :json)

Returns:

  • (Object)


33
# File 'sig/roistat.rbs', line 33

def post_multipart: (String, ?params: Hash[Symbol | String, untyped], ?form: Hash[Symbol | String, untyped], ?parse: Symbol) -> untyped

#projectsRoistat::Resources::Projects



36
# File 'sig/roistat.rbs', line 36

def projects: () -> Roistat::Resources::Projects

#proxy_leadsRoistat::Resources::ProxyLeads



43
# File 'sig/roistat.rbs', line 43

def proxy_leads: () -> Roistat::Resources::ProxyLeads

#request(method, path, params: {}, body: nil, parse: :json) ⇒ Object

Parameters:

  • (Symbol, String)
  • (String)
  • params: (Hash[Symbol | String, untyped]) (defaults to: {})
  • body: (Object) (defaults to: nil)
  • parse: (Symbol) (defaults to: :json)

Returns:

  • (Object)


34
# File 'sig/roistat.rbs', line 34

def request: (Symbol | String, String, ?params: Hash[Symbol | String, untyped], ?body: untyped, ?parse: Symbol) -> untyped

#smsRoistat::Resources::Sms



55
# File 'sig/roistat.rbs', line 55

def sms: () -> Roistat::Resources::Sms

#speechRoistat::Resources::Speech



57
# File 'sig/roistat.rbs', line 57

def speech: () -> Roistat::Resources::Speech

#statisticsRoistat::Resources::Statistics



51
# File 'sig/roistat.rbs', line 51

def statistics: () -> Roistat::Resources::Statistics

#visitsRoistat::Resources::Visits



47
# File 'sig/roistat.rbs', line 47

def visits: () -> Roistat::Resources::Visits

#vpbxRoistat::Resources::Vpbx



58
# File 'sig/roistat.rbs', line 58

def vpbx: () -> Roistat::Resources::Vpbx

#widgetsRoistat::Resources::Widgets



39
# File 'sig/roistat.rbs', line 39

def widgets: () -> Roistat::Resources::Widgets