Class: ODDB::Patent

Inherits:
Object show all
Includes:
Persistence
Defined in:
src/model/patent.rb

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Persistence

#initialize

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #structural_ancestors, #undiffable?, #update_values

Constructor Details

This class inherits a constructor from ODDB::Persistence

Instance Attribute Details

- (Object) base_patent

Returns the value of attribute base_patent



10
11
12
# File 'src/model/patent.rb', line 10

def base_patent
  @base_patent
end

- (Object) base_patent_date

Returns the value of attribute base_patent_date



10
11
12
# File 'src/model/patent.rb', line 10

def base_patent_date
  @base_patent_date
end

- (Object) certificate_number

Returns the value of attribute certificate_number



10
11
12
# File 'src/model/patent.rb', line 10

def certificate_number
  @certificate_number
end

- (Object) deletion_date

Returns the value of attribute deletion_date



10
11
12
# File 'src/model/patent.rb', line 10

def deletion_date
  @deletion_date
end

- (Object) expiry_date

Returns the value of attribute expiry_date



10
11
12
# File 'src/model/patent.rb', line 10

def expiry_date
  @expiry_date
end

- (Object) iksnr

Returns the value of attribute iksnr



10
11
12
# File 'src/model/patent.rb', line 10

def iksnr
  @iksnr
end

- (Object) issue_date

Returns the value of attribute issue_date



10
11
12
# File 'src/model/patent.rb', line 10

def issue_date
  @issue_date
end

- (Object) protection_date

Returns the value of attribute protection_date



10
11
12
# File 'src/model/patent.rb', line 10

def protection_date
  @protection_date
end

- (Object) publication_date

Returns the value of attribute publication_date



10
11
12
# File 'src/model/patent.rb', line 10

def publication_date
  @publication_date
end

- (Object) registration_date

Returns the value of attribute registration_date



10
11
12
# File 'src/model/patent.rb', line 10

def registration_date
  @registration_date
end

Instance Method Details

- (Object) pointer_descr



13
14
15
# File 'src/model/patent.rb', line 13

def pointer_descr
  :patent
end

- (Boolean) protected?

Returns:

  • (Boolean)


16
17
18
# File 'src/model/patent.rb', line 16

def protected?
  !@deletion_date && @expiry_date && @expiry_date >= @@today
end