Class: Arcp::Session::ListJobs
- Inherits:
-
Data
- Object
- Data
- Arcp::Session::ListJobs
- Defined in:
- lib/arcp/session/list_jobs.rb
Instance Attribute Summary collapse
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor
5 6 7 |
# File 'lib/arcp/session/list_jobs.rb', line 5 def cursor @cursor end |
#filter ⇒ Object (readonly)
Returns the value of attribute filter
5 6 7 |
# File 'lib/arcp/session/list_jobs.rb', line 5 def filter @filter end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit
5 6 7 |
# File 'lib/arcp/session/list_jobs.rb', line 5 def limit @limit end |
Class Method Details
.from_h(h) ⇒ Object
6 7 8 9 |
# File 'lib/arcp/session/list_jobs.rb', line 6 def self.from_h(h) h = h.transform_keys(&:to_s) new(filter: h['filter'] || {}, limit: h['limit'], cursor: h['cursor']) end |
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 16 |
# File 'lib/arcp/session/list_jobs.rb', line 11 def to_h out = { 'filter' => filter || {} } out['limit'] = limit if limit out['cursor'] = cursor if cursor out end |