Class: Uplink::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/uplink/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_result, object = nil) ⇒ Object

Returns a new instance of Object.



7
8
9
# File 'lib/uplink/object.rb', line 7

def initialize(object_result, object = nil)
  init_attributes(object_result.nil? || object_result.null? ? object : object_result[:object])
end

Instance Attribute Details

#content_lengthObject (readonly)

Returns the value of attribute content_length.



5
6
7
# File 'lib/uplink/object.rb', line 5

def content_length
  @content_length
end

#createdObject (readonly)

Returns the value of attribute created.



5
6
7
# File 'lib/uplink/object.rb', line 5

def created
  @created
end

#customObject (readonly)

Returns the value of attribute custom.



5
6
7
# File 'lib/uplink/object.rb', line 5

def custom
  @custom
end

#expiresObject (readonly)

Returns the value of attribute expires.



5
6
7
# File 'lib/uplink/object.rb', line 5

def expires
  @expires
end

#is_prefixObject (readonly)

Returns the value of attribute is_prefix.



5
6
7
# File 'lib/uplink/object.rb', line 5

def is_prefix
  @is_prefix
end

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/uplink/object.rb', line 5

def key
  @key
end