Module: IFormat
- Defined in:
- lib/iformat.rb,
lib/iformat/base.rb,
lib/iformat/error.rb,
lib/iformat/order.rb,
lib/iformat/client.rb,
lib/iformat/session.rb,
lib/iformat/version.rb,
lib/iformat/category.rb,
lib/iformat/order_item.rb,
lib/iformat/client/orders.rb,
lib/iformat/configuration.rb,
lib/iformat/client/session.rb,
lib/iformat/client/products.rb,
lib/iformat/error/item_error.rb,
lib/iformat/error/logo_error.rb,
lib/iformat/error/insert_coin.rb,
lib/iformat/error/client_error.rb,
lib/iformat/error/header_error.rb,
lib/iformat/error/server_error.rb,
lib/iformat/error/unknown_error.rb,
lib/iformat/error/bad_session_id.rb,
lib/iformat/error/internal_error.rb,
lib/iformat/error/result_too_big.rb,
lib/iformat/error/order_not_found.rb,
lib/iformat/error/authorization_error.rb,
lib/iformat/error/order_already_exists.rb,
lib/iformat/error/order_waiting_for_links.rb,
lib/iformat/error/bad_username_or_password.rb,
lib/iformat/error/not_all_lines_have_links.rb,
lib/iformat/error/order_deleted_from_system.rb,
lib/iformat/error/order_closed_no_links_generated.rb,
lib/iformat/error/bad_username_or_password_or_passwords_different.rb
Defined Under Namespace
Classes: Base, Category, Client, Configuration, Error, Order, OrderItem, Session
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
- .config ⇒ Object
- .configure {|Configuration.instance| ... } ⇒ Object
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to IFormat::Client.
-
.new(options = {}) ⇒ IFormat::Client
Alias for IFormat::Client.new.
- .respond_to?(method, include_private = false) ⇒ Boolean
Class Method Details
.config ⇒ Object
20 21 22 |
# File 'lib/iformat.rb', line 20 def self.config Configuration.instance end |
.configure {|Configuration.instance| ... } ⇒ Object
14 15 16 17 18 |
# File 'lib/iformat.rb', line 14 def self.configure(&block) return unless block_given? yield Configuration.instance end |
.method_missing(method, *args, &block) ⇒ Object
Delegate to IFormat::Client
25 26 27 28 29 |
# File 'lib/iformat.rb', line 25 def self.method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ IFormat::Client
Alias for IFormat::Client.new
10 11 12 |
# File 'lib/iformat.rb', line 10 def self.new( = {}) IFormat::Client.new() end |
.respond_to?(method, include_private = false) ⇒ Boolean
31 32 33 |
# File 'lib/iformat.rb', line 31 def self.respond_to?(method, include_private = false) new.respond_to?(method, include_private) || super(method, include_private) end |