Sha256: 06a2945dec73e394fbbc97be1d1c9146b84eb7c299d0f4cb6e4c78470bbd37a6

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

module PrintReleaf
  module Forestry
    class Project < Resource
      path "/forestry/projects"

      action :find
      action :list

      property :id
      property :name
      property :status
      property :forest_latitude
      property :forest_longitude
      property :content_logo
      property :content_masthead
      property :content_introduction
      property :content_body_html
      property :content_images

      def active?
        status == "active"
      end

      def inactive?
        status == "inactive"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
printreleaf-1.5.0 lib/printreleaf/forestry/project.rb
printreleaf-1.3.2 lib/printreleaf/forestry/project.rb
printreleaf-1.3.1 lib/printreleaf/forestry/project.rb
printreleaf-1.3.0 lib/printreleaf/forestry/project.rb
printreleaf-1.0.3 lib/printreleaf/forestry/project.rb
printreleaf-1.0.2 lib/printreleaf/forestry/project.rb
printreleaf-1.0.1 lib/printreleaf/forestry/project.rb