class Crysna::Site

Attributes

global_vector[R]
internal_vector[RW]
name[R]

Public Class Methods

new(name, global_vector) click to toggle source
# File lib/crysna/site.rb, line 17
def initialize(name, global_vector)
  @name = name
  @global_vector = global_vector.to_v3di
end

Public Instance Methods

==(other)
Alias for: equal?
equal?(other) click to toggle source
# File lib/crysna/site.rb, line 22
def equal?(other)
  return false unless self.name == other.name
  return false unless same_globla_vector?(other)
  return true
end
Also aliased as: ==
same_globla_vector?(other) click to toggle source
# File lib/crysna/site.rb, line 29
def same_globla_vector?(other)
  return false unless self.global_vector == other.global_vector
  return true
end