Sha256: 1acf9730ec2ca4305d1444cfac8a5c2dc97eea16ac4cc73b310b8e9b06547a68

Contents?: true

Size: 312 Bytes

Versions: 16

Compression:

Stored size: 312 Bytes

Contents

module MagnumPI
  module API
    module Instance

      def initialize(params = {})
        super()
        @api = self.class.api.finalize params
        @resources = self.class.resources.to_hash
      end

      def api
        @api
      end

      def resources
        @resources
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
magnum-pi-0.2.11 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.10 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.9 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.8 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.7 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.6 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.5 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.4 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.3 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.2 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.1 lib/magnum-pi/api/instance.rb
magnum-pi-0.2.0 lib/magnum-pi/api/instance.rb
magnum-pi-0.1.4 lib/magnum-pi/api/instance.rb
magnum-pi-0.1.3 lib/magnum-pi/api/instance.rb
magnum-pi-0.1.2 lib/magnum-pi/api/instance.rb
magnum-pi-0.1.1 lib/magnum-pi/api/instance.rb