Class: EhbrsRubyUtils::WebUtils::Instance

Inherits:
Avm::EacRailsBase0::Instances::Base
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/web_utils/instance.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances.rb,
lib/ehbrs_ruby_utils/web_utils/instance/http_request.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills/consume.rb,
lib/ehbrs_ruby_utils/web_utils/instance/finances/bills/consume/file.rb

Defined Under Namespace

Classes: Finances, HttpRequest

Instance Method Summary collapse

Instance Method Details

#apiEacRest::Api

Returns:

  • (EacRest::Api)


13
14
15
# File 'lib/ehbrs_ruby_utils/web_utils/instance.rb', line 13

def api
  ::EacRest::Api.new(root_url, read_entry(:admin_username), read_entry(:admin_password))
end

#financesObject



17
18
19
# File 'lib/ehbrs_ruby_utils/web_utils/instance.rb', line 17

def finances
  @finances ||= ::EhbrsRubyUtils::WebUtils::Instance::Finances.new(self)
end

#root_urlObject



21
22
23
# File 'lib/ehbrs_ruby_utils/web_utils/instance.rb', line 21

def root_url
  web_url
end