Class: OneDriveForBusiness::Drive::Quota

Inherits:
Object
  • Object
show all
Defined in:
lib/onedrive_for_business/drive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields) ⇒ Quota

Returns a new instance of Quota.



35
36
37
38
39
40
# File 'lib/onedrive_for_business/drive.rb', line 35

def initialize(fields)
  @deleted = fields['deleted']
  @remaining = fields['remaining']
  @state = fields['state']
  @total = fields['total']
end

Instance Attribute Details

#deletedObject (readonly)

Returns the value of attribute deleted.



42
43
44
# File 'lib/onedrive_for_business/drive.rb', line 42

def deleted
  @deleted
end

#remainingObject (readonly)

Returns the value of attribute remaining.



43
44
45
# File 'lib/onedrive_for_business/drive.rb', line 43

def remaining
  @remaining
end

#stateObject (readonly)

Returns the value of attribute state.



44
45
46
# File 'lib/onedrive_for_business/drive.rb', line 44

def state
  @state
end

#totalObject (readonly)

Returns the value of attribute total.



45
46
47
# File 'lib/onedrive_for_business/drive.rb', line 45

def total
  @total
end