Class: Uplink::Object
- Inherits:
-
Object
- Object
- Uplink::Object
- Defined in:
- lib/uplink/object.rb
Instance Attribute Summary collapse
-
#content_length ⇒ Object
readonly
Returns the value of attribute content_length.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#custom ⇒ Object
readonly
Returns the value of attribute custom.
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
-
#is_prefix ⇒ Object
readonly
Returns the value of attribute is_prefix.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(object_result, object = nil) ⇒ Object
constructor
A new instance of Object.
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_length ⇒ Object (readonly)
Returns the value of attribute content_length.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def content_length @content_length end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def created @created end |
#custom ⇒ Object (readonly)
Returns the value of attribute custom.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def custom @custom end |
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def expires @expires end |
#is_prefix ⇒ Object (readonly)
Returns the value of attribute is_prefix.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def is_prefix @is_prefix end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5 6 7 |
# File 'lib/uplink/object.rb', line 5 def key @key end |