Sha256: 8db64c1dde08e8583b8973711da801db83fae219447c15fc5aaea33bd20a0a1a

Contents?: true

Size: 285 Bytes

Versions: 22

Compression:

Stored size: 285 Bytes

Contents

require_relative '../ostruct'
module FSR
  module Model
    class Tier < OpenStruct

      def initialize(fields, *data)
        super(Hash[fields.zip(data)])
      end

      def fields
        raise NotImplementedError, "This class is now an OpenStruct"
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
freeswitcher-0.8.0 lib/fsr/model/tier.rb
freeswitcher-0.7.1 lib/fsr/model/tier.rb
freeswitcher-0.7.0 lib/fsr/model/tier.rb
freeswitcher-0.6.18 lib/fsr/model/tier.rb
freeswitcher-0.6.17 lib/fsr/model/tier.rb
freeswitcher-0.6.16 lib/fsr/model/tier.rb
freeswitcher-0.6.15 lib/fsr/model/tier.rb
freeswitcher-0.6.14 lib/fsr/model/tier.rb
freeswitcher-0.6.13 lib/fsr/model/tier.rb
freeswitcher-0.6.12 lib/fsr/model/tier.rb
freeswitcher-0.6.11 lib/fsr/model/tier.rb
freeswitcher-0.6.10 lib/fsr/model/tier.rb
freeswitcher-0.6.9 lib/fsr/model/tier.rb
freeswitcher-0.6.8 lib/fsr/model/tier.rb
freeswitcher-0.6.7 lib/fsr/model/tier.rb
freeswitcher-0.6.6 lib/fsr/model/tier.rb
freeswitcher-0.6.5 lib/fsr/model/tier.rb
freeswitcher-0.6.4 lib/fsr/model/tier.rb
freeswitcher-0.6.3 lib/fsr/model/tier.rb
freeswitcher-0.6.2 lib/fsr/model/tier.rb