Class: OpenStruct

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

Overview

some of our Linode API data results include a 'type' data member. OpenStruct will have problems providing a .type method, so we special-case this.

Instance Method Summary collapse

Instance Method Details

#typeObject



5
6
7
# File 'lib/ostruct_tweak.rb', line 5

def type
  @table[:type]
end