No commit activity in last 3 years
No release in over 3 years
一個統一發票的查詢、兌獎 gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 1.0
~> 2.13
~> 0.10
~> 0.2
~> 10.0
~> 3.3
~> 0.2
~> 0.10

Runtime

~> 1.6
 Project Readme

UniformInvoiceLottery

Build Status

一個統一發票兌獎的 Gem,還有自動更新功能,還真不賴。自己說。

Installation

Add this line to your application's Gemfile:

gem 'uniform_invoice_lottery'

And then execute:

$ bundle

Or install it yourself as:

$ gem install uniform_invoice_lottery

Usage

require 'uniform_invoice_lottery'
prize = UniformInvoiceLottery.check '82930261', time: Time.new(2015, 7, 26)
prize = UniformInvoiceLottery.check '82930261', year: 2015, month: 7 day: 26

puts prize.amount # => "10000000"
puts prize.title  # => "特別獎"

Contributing

  1. Fork it ( https://github.com/Yukaii/uniform_invoice_lottery/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request