Class: Files::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/status.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/status.rb', line 5

def options
  @options
end

Instance Method Details

#clickwrap_bodyObject

string - Required Clickwrap body



43
44
45
# File 'lib/files.com/models/status.rb', line 43

def clickwrap_body
  @attributes[:clickwrap_body]
end

#clickwrap_idObject

int64 - Required Clickwrap id



38
39
40
# File 'lib/files.com/models/status.rb', line 38

def clickwrap_id
  @attributes[:clickwrap_id]
end

#codeObject

int64 - Status HTTP code



13
14
15
# File 'lib/files.com/models/status.rb', line 13

def code
  @attributes[:code]
end

#dataObject

Auto - Additional data



28
29
30
# File 'lib/files.com/models/status.rb', line 28

def data
  @attributes[:data]
end

#errorsObject

array - A list of api errors



33
34
35
# File 'lib/files.com/models/status.rb', line 33

def errors
  @attributes[:errors]
end

#messageObject

string - Error message



18
19
20
# File 'lib/files.com/models/status.rb', line 18

def message
  @attributes[:message]
end

#statusObject

string - Status message



23
24
25
# File 'lib/files.com/models/status.rb', line 23

def status
  @attributes[:status]
end