Class: Proj::Bounds

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xmin, ymin, xmax, ymax, name = nil) ⇒ Bounds

Returns a new instance of Bounds.



5
6
7
8
9
10
11
# File 'lib/proj/bounds.rb', line 5

def initialize(xmin, ymin, xmax, ymax, name = nil)
  @xmin = xmin
  @ymin = ymin
  @xmax = xmax
  @ymax = ymax
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/proj/bounds.rb', line 3

def name
  @name
end

#xmaxObject (readonly)

Returns the value of attribute xmax.



3
4
5
# File 'lib/proj/bounds.rb', line 3

def xmax
  @xmax
end

#xminObject (readonly)

Returns the value of attribute xmin.



3
4
5
# File 'lib/proj/bounds.rb', line 3

def xmin
  @xmin
end

#ymaxObject (readonly)

Returns the value of attribute ymax.



3
4
5
# File 'lib/proj/bounds.rb', line 3

def ymax
  @ymax
end

#yminObject (readonly)

Returns the value of attribute ymin.



3
4
5
# File 'lib/proj/bounds.rb', line 3

def ymin
  @ymin
end