Class: Fiona7::AttributeReaders::Simple

Inherits:
AttributeReader show all
Defined in:
lib/fiona7/attribute_readers/simple.rb

Instance Method Summary collapse

Methods inherited from AttributeReader

#initialize

Constructor Details

This class inherits a constructor from Fiona7::AttributeReaders::AttributeReader

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
# File 'lib/fiona7/attribute_readers/simple.rb', line 6

def call
  value = self.obj[self.attr_name]

  if self.attr_name.to_s == "suppress_export"
    value.to_s
  else
    value
  end
end