Class: Torque::PostgreSQL::Circle
- Inherits:
-
Struct
- Object
- Struct
- Torque::PostgreSQL::Circle
- Defined in:
- lib/torque/postgresql/adapter/oid/circle.rb,
sig/torque/postgresql/adapter/oid/circle.rbs
Direct Known Subclasses
Instance Method Summary collapse
- #center ⇒ Object
- #center=(value) ⇒ Numeric
- #r ⇒ Numeric (also: #radius)
- #r= ⇒ Numeric (also: #radius=)
- #x ⇒ Numeric
- #x= ⇒ Numeric
- #y ⇒ Numeric
- #y= ⇒ Numeric
Instance Method Details
#center ⇒ Object
9 10 11 |
# File 'lib/torque/postgresql/adapter/oid/circle.rb', line 9 def center point_class.new(x, y) end |
#center=(value) ⇒ Numeric
13 14 15 16 17 |
# File 'lib/torque/postgresql/adapter/oid/circle.rb', line 13 def center=(value) parts = value.is_a?(point_class) ? [value.x, value.y] : value[0..1] self.x = parts.first self.y = parts.last end |
#r ⇒ Numeric Also known as: radius
8 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 8
def r: () -> Numeric
|
#r= ⇒ Numeric Also known as: radius=
9 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 9
def r=: (Numeric value) -> Numeric
|
#x ⇒ Numeric
4 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 4
def x: () -> Numeric
|
#x= ⇒ Numeric
5 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 5
def x=: (Numeric value) -> Numeric
|
#y ⇒ Numeric
6 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 6
def y: () -> Numeric
|
#y= ⇒ Numeric
7 |
# File 'sig/torque/postgresql/adapter/oid/circle.rbs', line 7
def y=: (Numeric value) -> Numeric
|