Class: ActiveRecord::Point

Inherits:
Struct show all
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/oid/rails_5_1_point.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#as_json

Instance Attribute Details

#xObject

Returns the value of attribute x


2
3
4
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/rails_5_1_point.rb', line 2

def x
  @x
end

#yObject

Returns the value of attribute y


2
3
4
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/rails_5_1_point.rb', line 2

def y
  @y
end