Class: FSR::Model::Tier

Inherits:
OpenStruct show all
Defined in:
lib/fsr/model/tier.rb

Instance Method Summary collapse

Methods inherited from OpenStruct

#to_hash, #to_json

Constructor Details

#initialize(fields, *data) ⇒ Tier

Returns a new instance of Tier.



6
7
8
# File 'lib/fsr/model/tier.rb', line 6

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

Instance Method Details

#fieldsObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/fsr/model/tier.rb', line 10

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