Class: Invoiced::List
- Inherits:
-
Object
- Object
- Invoiced::List
- Defined in:
- lib/invoiced/list.rb
Instance Attribute Summary collapse
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#total_count ⇒ Object
readonly
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(link_header, total_count) ⇒ List
constructor
A new instance of List.
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
#links ⇒ Object (readonly)
Returns the value of attribute links.
3 4 5 |
# File 'lib/invoiced/list.rb', line 3 def links @links end |
#total_count ⇒ Object (readonly)
Returns the value of attribute total_count.
4 5 6 |
# File 'lib/invoiced/list.rb', line 4 def total_count @total_count end |