Sha256: 2f9aeb40a541d067553cdb10eb6b6130640da9ca668cacebdcf64e25888b26a4

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

module Nusii
  class Section < Resource
    extend Nusii::Crud::Get
    extend Nusii::Crud::List
    extend Nusii::Crud::Create
    include Nusii::Crud::Save
    extend Nusii::Crud::Destroy
    include Nusii::Crud::DestroySelf

    attr_accessor :id, :currency, :account_id, :proposal_id,
                  :template_id, :title, :name, :body, :position,
                  :reusable, :section_type, :created_at, :updated_at,
                  :page_break, :optional, :selected, :include_total,
                  :total_in_cents, :total_formatted, :line_items

  private

    def editable_attributes
      [ :proposal_id, :template_id, :title, :body,
        :name, :position, :reusable, :section_type,
        :page_break, :optional, :include_total ]
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nusii-0.1.1 lib/nusii/section.rb