Sha256: 0bb48d8596eacf626ac668dc7df70c5897c1de82b4c3e45d2ce2ad9317078c4a

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

# -*- coding: utf-8 -*-

module Dcmgr::Models
  class NetfilterRule < BaseNew
    with_timestamps

    inheritable_schema do
      Fixnum :netfilter_group_id, :null=>false
      String :permission, :null=>false
    end

    many_to_one :netfilter_group

    def to_hash
      {
        :permission => permission,
      }
    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
wakame-vdc-agents-11.06.0 lib/dcmgr/models/netfilter_rule.rb
wakame-vdc-dcmgr-11.06.0 lib/dcmgr/models/netfilter_rule.rb
wakame-vdc-dcmgr-10.12.0 lib/dcmgr/models/netfilter_rule.rb
wakame-vdc-agents-10.12.0 lib/dcmgr/models/netfilter_rule.rb
wakame-vdc-dcmgr-10.11.0 lib/dcmgr/models/netfilter_rule.rb
wakame-vdc-agents-10.11.0 lib/dcmgr/models/netfilter_rule.rb