Class: MessageBird::CallFlowList
- Defined in:
- lib/messagebird/callflow.rb
Constant Summary collapse
- PER_PAGE =
20- CURRENT_PAGE =
1
Instance Attribute Summary collapse
-
#current_page ⇒ Object
Returns the value of attribute current_page.
-
#page_count ⇒ Object
Returns the value of attribute page_count.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Attributes inherited from List
#count, #items, #limit, #links, #offset
Instance Method Summary collapse
Methods inherited from List
Methods inherited from Base
#initialize, #map_hash_elements_to_self, #value_to_time
Constructor Details
This class inherits a constructor from MessageBird::List
Instance Attribute Details
#current_page ⇒ Object
Returns the value of attribute current_page.
29 30 31 |
# File 'lib/messagebird/callflow.rb', line 29 def current_page @current_page end |
#page_count ⇒ Object
Returns the value of attribute page_count.
29 30 31 |
# File 'lib/messagebird/callflow.rb', line 29 def page_count @page_count end |
#per_page ⇒ Object
Returns the value of attribute per_page.
29 30 31 |
# File 'lib/messagebird/callflow.rb', line 29 def per_page @per_page end |
#total_count ⇒ Object
Returns the value of attribute total_count.
29 30 31 |
# File 'lib/messagebird/callflow.rb', line 29 def total_count @total_count end |
Instance Method Details
#data=(value) ⇒ Object
34 35 36 |
# File 'lib/messagebird/callflow.rb', line 34 def data=(value) self.items = value end |
#pagination=(value) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/messagebird/callflow.rb', line 38 def pagination=(value) value.each do |k, v| send("#{k}=", v) rescue NoMethodError puts 'An error occurred while listing callflows' end end |