Sha256: d0ab784f064ab214993c7c1ba7a6b4f123b24290d16e6b73bf1c36f4a7386937

Contents?: true

Size: 1.37 KB

Versions: 9

Compression:

Stored size: 1.37 KB

Contents

########    #######    ########    #######    ########    ########
##     / / / /    License    \ \ \ \ 
##    Copyleft culture, Copyright (C) is prohibited here
##    This work is licensed under a CC BY-SA 4.0
##    Creative Commons Attribution-ShareAlike 4.0 License
##    Refer to the http://creativecommons.org/licenses/by-sa/4.0/
########    #######    ########    #######    ########    ########
##    / / / /    Code Climate    \ \ \ \ 
##    Language = ruby
##    Indent = space;    4 chars;
########    #######    ########    #######    ########    ########
module ArchestryLookup
  module Objects
    class << self   
  
      def getProp(_args,state,conProp,direction)
        rows = {}
        case direction
        when 'from'
          eID  = conProp[:fEID]
          eVer = conProp[:fEVer]        
        when 'to'
          eID  = conProp[:tEID]
          eVer = conProp[:tEVer]        
        end
        
        ArchestryLookup::Sql.sqlQuery(state,  "
          select name, value                  
          from properties 
          where parent_id like '#{eID}' AND
          parent_version = '#{eVer}' AND
          name NOT LIKE 'fqn'
        ")  do |row|
  #             ArchestryLookup.logger.debug "### ROW #{eID} #: #{row}"  
              rows[row[0].to_sym] = row[1]             
        end  
        return rows if not rows.empty?
      end

  
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
archestry_lookup-0.0.19 lib/objects/_old.rb
archestry_lookup-0.0.18 lib/objects/_old.rb
archestry_lookup-0.0.17 lib/objects/_old.rb
archestry_lookup-0.0.16 lib/objects/_old.rb
archestry_lookup-0.0.15 lib/objects/_old.rb
archestry_lookup-0.0.14 lib/objects/_old.rb
archestry_lookup-0.0.13 lib/objects/_old.rb
archestry_lookup-0.0.12 lib/objects/_old.rb
archestry_lookup-0.0.11 lib/objects/_old.rb