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

#codeObject

int64 - Status http code



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

def code
  @attributes[:code]
end

#dataObject



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

def data
  @attributes[:data]
end

#errorsObject

array - A list of api errors



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

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