Sha256: dd6c17d6dc53e0e9404c42861cc1daaf72dcdb0a301a579686bd28792a8454ad

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

module OpenBD
  module Resources
    class OpenbdItem < BaseResource
      def initialize(source)
        @source = source
        @hanmoto = nil
        @onix = nil
        @summary = nil
      end

      def onix
        @onix ||= ::OpenBD::Resources::Onix.new(source['onix'])
      end

      def hanmoto
        @hanmoto ||= ::OpenBD::Resources::Hanmoto.new(source['hanmoto'])
      end

      def summary
        @summary ||= ::OpenBD::Resources::Summary.new(source['summary'])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openbd_api-0.5.0 lib/openbd/resources/openbd_item.rb
openbd_api-0.4.5 lib/openbd/resources/openbd_item.rb
openbd_api-0.4.4 lib/openbd/resources/openbd_item.rb