Class: Files::Label
- Inherits:
-
Object
- Object
- Files::Label
- Defined in:
- lib/files.com/models/label.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}, options = {}) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ Label
Returns a new instance of Label.
7 8 9 10 |
# File 'lib/files.com/models/label.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/label.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/label.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/files.com/models/label.rb', line 17 def self.all(params = {}, = {}) list(params, ) nil end |
.list(params = {}, options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/files.com/models/label.rb', line 12 def self.list(params = {}, = {}) Api.send_request("/labels", :get, params, ) nil end |