Class: CirroIO::Client::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cirro_io/client/configuration.rb

Instance Method Summary collapse

Instance Method Details

#api_versionObject



25
26
27
# File 'lib/cirro_io/client/configuration.rb', line 25

def api_version
  'v1'
end

#app_id(value = nil) ⇒ Object



4
5
6
7
8
9
# File 'lib/cirro_io/client/configuration.rb', line 4

def app_id(value = nil)
  @app_id = value unless value.nil?
  raise 'app_id must be defined' unless defined?(@app_id)

  @app_id
end

#private_key_path(value = nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/cirro_io/client/configuration.rb', line 11

def private_key_path(value = nil)
  @private_key_path = value unless value.nil?
  raise 'private_key_path must be defined' unless defined?(@private_key_path)

  @private_key_path
end

#site(value = nil) ⇒ Object



18
19
20
21
22
23
# File 'lib/cirro_io/client/configuration.rb', line 18

def site(value = nil)
  @site = value unless value.nil?
  raise 'site must be defined' unless defined?(@site)

  @site
end