Class: WCC::Data::Config::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/data/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, connection: Faraday::Connection.new) ⇒ Application

Returns a new instance of Application.



30
31
32
33
# File 'lib/wcc/data/config.rb', line 30

def initialize(name, connection: Faraday::Connection.new)
  @name = name
  @connection = connection
end

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



28
29
30
# File 'lib/wcc/data/config.rb', line 28

def connection
  @connection
end

#nameObject (readonly)

Returns the value of attribute name.



27
28
29
# File 'lib/wcc/data/config.rb', line 27

def name
  @name
end

#uriObject

Returns the value of attribute uri.



27
28
29
# File 'lib/wcc/data/config.rb', line 27

def uri
  @uri
end

Instance Method Details

#serviceObject



39
40
41
# File 'lib/wcc/data/config.rb', line 39

def service
  Service.new(connection: connection, uri: uri)
end