class KeyholeIO::KVPair
Attributes
created_at[RW]
key[RW]
meta[RW]
successful[RW]
type[RW]
updated_at[RW]
value[RW]
Public Class Methods
new(raw_response)
click to toggle source
# File lib/keyholeio.rb, line 28 def initialize raw_response response = Response.new raw_response if response.successful? @meta = response.meta @key = response.data["key"] @value = response.data["value"] @created_at = response.data["created_at"] if response.data["created_at"] @updated_at = response.data["updated_at"] if response.data["updated_at"] @type = response.data["type"] if response.data["type"] @successful = true else @successful = false end end
Public Instance Methods
successful?()
click to toggle source
# File lib/keyholeio.rb, line 43 def successful? @successful end