Class: Nephophobia::Response::Return

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/return.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Return

Returns a new instance of Return.



8
9
10
11
12
13
# File 'lib/nephophobia/response/return.rb', line 8

def initialize attributes
  @attributes = attributes

  @request_id = attributes["requestId"]
  @return     = attributes["return"] == "true"
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/nephophobia/response/return.rb', line 6

def attributes
  @attributes
end

#request_idObject (readonly)

Returns the value of attribute request_id.



4
5
6
# File 'lib/nephophobia/response/return.rb', line 4

def request_id
  @request_id
end

#returnObject (readonly)

Returns the value of attribute return.



4
5
6
# File 'lib/nephophobia/response/return.rb', line 4

def return
  @return
end