Class: Files::Status
- Inherits:
-
Object
- Object
- Files::Status
- Defined in:
- lib/files.com/models/status.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
-
#clickwrap_body ⇒ Object
string - Required Clickwrap body.
-
#clickwrap_id ⇒ Object
int64 - Required Clickwrap id.
-
#code ⇒ Object
int64 - Status HTTP code.
-
#data ⇒ Object
Additional data.
-
#errors ⇒ Object
array - A list of api errors.
-
#initialize(attributes = {}, options = {}) ⇒ Status
constructor
A new instance of Status.
-
#message ⇒ Object
string - Error message.
-
#status ⇒ Object
string - Status message.
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ Status
Returns a new instance of Status.
7 8 9 10 |
# File 'lib/files.com/models/status.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/status.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/status.rb', line 5 def @options end |
Instance Method Details
#clickwrap_body ⇒ Object
string - Required Clickwrap body
43 44 45 |
# File 'lib/files.com/models/status.rb', line 43 def clickwrap_body @attributes[:clickwrap_body] end |
#clickwrap_id ⇒ Object
int64 - Required Clickwrap id
38 39 40 |
# File 'lib/files.com/models/status.rb', line 38 def clickwrap_id @attributes[:clickwrap_id] end |
#code ⇒ Object
int64 - Status HTTP code
13 14 15 |
# File 'lib/files.com/models/status.rb', line 13 def code @attributes[:code] end |
#data ⇒ Object
Additional data
28 29 30 |
# File 'lib/files.com/models/status.rb', line 28 def data @attributes[:data] end |
#errors ⇒ Object
array - A list of api errors
33 34 35 |
# File 'lib/files.com/models/status.rb', line 33 def errors @attributes[:errors] end |
#message ⇒ Object
string - Error message
18 19 20 |
# File 'lib/files.com/models/status.rb', line 18 def @attributes[:message] end |
#status ⇒ Object
string - Status message
23 24 25 |
# File 'lib/files.com/models/status.rb', line 23 def status @attributes[:status] end |