Class: PrintReleaf::Deposit

Inherits:
Resource
  • Object
show all
Defined in:
lib/printreleaf/deposit.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

#accountObject



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

def 
  @account ||= Account.find()
end

#feedObject



24
25
26
27
# File 'lib/printreleaf/deposit.rb', line 24

def feed
  return nil if feed_id.nil?
  @feed ||= Feed.find(feed_id)
end

#paper_typeObject



29
30
31
32
# File 'lib/printreleaf/deposit.rb', line 29

def paper_type
  return nil if paper_type_id.nil?
  @paper_type ||= Paper::Type.find(paper_type_id)
end