Class: Files::SyncApiUsageSnapshot
- Inherits:
-
Object
- Object
- Files::SyncApiUsageSnapshot
- Defined in:
- lib/files.com/models/sync_api_usage_snapshot.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#api_reads ⇒ Object
int64 - API Reads.
-
#api_writes ⇒ Object
int64 - API Writes.
-
#ifname ⇒ Object
string - Interface Name.
-
#initialize(attributes = {}, options = {}) ⇒ SyncApiUsageSnapshot
constructor
A new instance of SyncApiUsageSnapshot.
-
#list_cache_hits ⇒ Object
int64 - List Cache Hits.
-
#list_cache_misses ⇒ Object
int64 - List Cache Misses.
-
#stat_cache_hits ⇒ Object
int64 - Stat Cache Hits.
-
#stat_cache_misses ⇒ Object
int64 - Stat Cache Misses.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ SyncApiUsageSnapshot
Returns a new instance of SyncApiUsageSnapshot.
7 8 9 10 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 5 def @options end |
Instance Method Details
#api_reads ⇒ Object
int64 - API Reads
18 19 20 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 18 def api_reads @attributes[:api_reads] end |
#api_writes ⇒ Object
int64 - API Writes
23 24 25 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 23 def api_writes @attributes[:api_writes] end |
#ifname ⇒ Object
string - Interface Name
13 14 15 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 13 def ifname @attributes[:ifname] end |
#list_cache_hits ⇒ Object
int64 - List Cache Hits
28 29 30 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 28 def list_cache_hits @attributes[:list_cache_hits] end |
#list_cache_misses ⇒ Object
int64 - List Cache Misses
33 34 35 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 33 def list_cache_misses @attributes[:list_cache_misses] end |
#stat_cache_hits ⇒ Object
int64 - Stat Cache Hits
38 39 40 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 38 def stat_cache_hits @attributes[:stat_cache_hits] end |
#stat_cache_misses ⇒ Object
int64 - Stat Cache Misses
43 44 45 |
# File 'lib/files.com/models/sync_api_usage_snapshot.rb', line 43 def stat_cache_misses @attributes[:stat_cache_misses] end |