Class: ROM::SQL::Postgres::Values::Path

Inherits:
Struct
  • Object
show all
Defined in:
lib/rom/sql/extensions/postgres/types/geometric.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



15
16
17
# File 'lib/rom/sql/extensions/postgres/types/geometric.rb', line 15

def points
  @points
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



15
16
17
# File 'lib/rom/sql/extensions/postgres/types/geometric.rb', line 15

def type
  @type
end

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/rom/sql/extensions/postgres/types/geometric.rb', line 20

def closed?
  type == :closed
end

#open?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/rom/sql/extensions/postgres/types/geometric.rb', line 16

def open?
  type == :open
end

#to_aObject



24
25
26
# File 'lib/rom/sql/extensions/postgres/types/geometric.rb', line 24

def to_a
  points
end