Socket
Book a DemoInstallSign in
Socket

lbank

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lbank

1.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Lbank

Gem Build Status License: MIT

Fetches currency rates from Lithuanian Central Bank website https://lb.lt. Does currency conversion. Supports historic currency rates.

Installation

Add this line to your application's Gemfile:

gem 'lbank'

Usage

Get hash of current currency rates

Lbank.currency_rates

Get hash of historic currency rates

Lbank.currency_rates(Date.new(2012, 8, 4))

Convert currency

Lbank.convert_currency(10, 'LTL', 'EUR')

Convert currency using historic rates

Lbank.convert_currency(10, 'LTL', 'EUR', Date.new(2012, 8, 4))

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 22 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.