README.md in netprint-0.0.2 vs README.md in netprint-0.0.3
- old
+ new
@@ -1,8 +1,8 @@
# Netprint
-A library to upload file to netprint(https://www.printing.ne.jp/)
+A library to use netprint(https://www.printing.ne.jp/)
## Installation
Add this line to your application's Gemfile:
@@ -22,9 +22,32 @@
n = Netprint::Agent.new(userid, password)
n.login
registration_code = n.upload('/path/to/file.pdf')
```
+
+### Upload Options
+
+```ruby
+n.upload('/path/to/file.pdf', {
+
+ # Netprint::PAPER_SIZE::A3
+ # Netprint::PAPER_SIZE::A4(default)
+ # Netprint::PAPER_SIZE::B4
+ # Netprint::PAPER_SIZE::B5
+ # Netprint::PAPER_SIZE::L
+ :paper_size => Netprint::PAPER_SIZE::B4,
+
+ # Netprint::COLOR::SELECT_WHEN_PRINT(default)
+ # Netprint::COLOR::BW
+ # Netprint::COLOR::COLOR
+ :color => Netprint::COLOR::BW,
+
+ :secret_code => '1234',
+ :email => 'foo@example.com'
+})
+```
+
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)