Class: PrintReleaf::Forestry::Project

Inherits:
Resource
  • Object
show all
Defined in:
lib/printreleaf/forestry/project.rb

Instance Attribute Summary

Attributes inherited from Resource

#copy, #owner

Instance Method Summary collapse

Methods inherited from Resource

action, actions, #changes, #compact_inspect, #delete, #deleted?, #find, #initialize, #inspect, path, #reset, #to_s, #uri, uri

Constructor Details

This class inherits a constructor from PrintReleaf::Resource

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/printreleaf/forestry/project.rb', line 20

def active?
  status == "active"
end

#inactive?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/printreleaf/forestry/project.rb', line 24

def inactive?
  status == "inactive"
end