Class: Billit::BillPage

Inherits:
Object
  • Object
show all
Includes:
BillPageRepresenter
Defined in:
lib/billit_representers/models/bill_page.rb

Instance Method Summary collapse

Methods included from BillPageRepresenter

#bills, included

Instance Method Details

#nextObject



10
11
12
# File 'lib/billit_representers/models/bill_page.rb', line 10

def next
  links[:next].href if links[:next]
end

#previousObject



14
15
16
# File 'lib/billit_representers/models/bill_page.rb', line 14

def previous
  links[:previous].href if links[:previous]
end

#selfObject



6
7
8
# File 'lib/billit_representers/models/bill_page.rb', line 6

def self
  links[:self].href if links[:self]
end