Class: DataMetaPii::AttrRef

Inherits:
Object
  • Object
show all
Defined in:
lib/dataMetaPii.rb

Overview

Attribute reference

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ AttrRef

Returns a new instance of AttrRef.



212
# File 'lib/dataMetaPii.rb', line 212

def initialize(key); @key = key end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



211
212
213
# File 'lib/dataMetaPii.rb', line 211

def key
  @key
end

Instance Method Details

#to_sObject

String representation



214
# File 'lib/dataMetaPii.rb', line 214

def to_s; %<#{self.class.name}{#{@key}}> end