Sha256: be3e1d91394063867884667ef643f8f29b29ab2e6144c03bede6dedd4746b94b

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

# -*- encoding: utf-8 -*-
require "enju_nii/engine"
require 'open-uri'
require 'enju_nii/cinii_book'

module EnjuNii
  module ActsAsMethods
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      def enju_nii_cinii_books
        include EnjuNii::CiNiiBook
      end
    end
  end

  class RecordNotFound < StandardError
  end

  class InvalidIsbn < StandardError
  end
end

ActiveRecord::Base.send :include, EnjuNii::ActsAsMethods

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_nii-0.1.0.pre8 lib/enju_nii.rb
enju_nii-0.1.0.pre7 lib/enju_nii.rb
enju_nii-0.1.0.pre6 lib/enju_nii.rb
enju_nii-0.1.0.pre5 lib/enju_nii.rb
enju_nii-0.1.0.pre4 lib/enju_nii.rb
enju_nii-0.1.0.pre3 lib/enju_nii.rb
enju_nii-0.1.0.pre2 lib/enju_nii.rb
enju_nii-0.1.0.pre lib/enju_nii.rb