Class: Invoiced::List

Inherits:
Object
  • Object
show all
Defined in:
lib/invoiced/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(link_header, total_count) ⇒ List

Returns a new instance of List.



6
7
8
9
# File 'lib/invoiced/list.rb', line 6

def initialize(link_header, total_count)
    @links = parse_link_header(link_header)
    @total_count = total_count
end

Instance Attribute Details

Returns the value of attribute links.



3
4
5
# File 'lib/invoiced/list.rb', line 3

def links
  @links
end

#total_countObject (readonly)

Returns the value of attribute total_count.



4
5
6
# File 'lib/invoiced/list.rb', line 4

def total_count
  @total_count
end