Sha256: 7fe2fb59ae5764ed5d4ed7bbf047397a9c06f55fdb46369b426219479a2597a1

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

module PlateApi::PlateObject
  class Section < Base

    has_one :post, "PlateApi::PlateObject::Post"
    has_many :rows, :row, "PlateApi::PlateObject::Row", true
    has_many :columns, :column, "PlateApi::PlateObject::Column"
    has_many :elements, :element, "PlateApi::PlateObject::Element"

    def self.api_name
      "sections"
    end

    def self.parent_class
      Post
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plate_api-1.1.2 lib/plate_api/plate_object/section.rb
plate_api-1.1.1 lib/plate_api/plate_object/section.rb
plate_api-1.1.0 lib/plate_api/plate_object/section.rb
plate_api-1.0.0 lib/plate_api/plate_object/section.rb