Class: Konfidant::Share

Inherits:
Data
  • Object
show all
Defined in:
lib/konfidant/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, file_name:, file_size_bytes:, created_at:, expires_at:, created_by:, accessed_at: nil) ⇒ Share

Returns a new instance of Share.



20
21
22
23
# File 'lib/konfidant/types.rb', line 20

def initialize(type:, file_name:, file_size_bytes:, created_at:,
               expires_at:, created_by:, accessed_at: nil)
  super
end

Instance Attribute Details

#accessed_atObject (readonly)

Returns the value of attribute accessed_at

Returns:

  • (Object)

    the current value of accessed_at



17
18
19
# File 'lib/konfidant/types.rb', line 17

def accessed_at
  @accessed_at
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



17
18
19
# File 'lib/konfidant/types.rb', line 17

def created_at
  @created_at
end

#created_byObject (readonly)

Returns the value of attribute created_by

Returns:

  • (Object)

    the current value of created_by



17
18
19
# File 'lib/konfidant/types.rb', line 17

def created_by
  @created_by
end

#expires_atObject (readonly)

Returns the value of attribute expires_at

Returns:

  • (Object)

    the current value of expires_at



17
18
19
# File 'lib/konfidant/types.rb', line 17

def expires_at
  @expires_at
end

#file_nameObject (readonly)

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



17
18
19
# File 'lib/konfidant/types.rb', line 17

def file_name
  @file_name
end

#file_size_bytesObject (readonly)

Returns the value of attribute file_size_bytes

Returns:

  • (Object)

    the current value of file_size_bytes



17
18
19
# File 'lib/konfidant/types.rb', line 17

def file_size_bytes
  @file_size_bytes
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



17
18
19
# File 'lib/konfidant/types.rb', line 17

def type
  @type
end