Class: VLC360::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/vlc360/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#localeObject

Returns the value of attribute locale.



6
7
8
# File 'lib/vlc360/client.rb', line 6

def locale
  @locale
end

Instance Method Details

#request(url, body = {}, headers = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/vlc360/client.rb', line 8

def request(url, body = {}, headers = {})
  self.class.base_uri VLC360.base_uri

  self.class.post(
    url,
    body: body.to_json,
    headers: default_headers.merge(headers)
  )
end