Class: SomeApi::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/someapi/wrapper/mock.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Mock

Returns a new instance of Mock.



6
7
8
# File 'lib/someapi/wrapper/mock.rb', line 6

def initialize(data)
    @data = data['mock']
end

Instance Method Details

#textObject

Return the text



11
12
13
# File 'lib/someapi/wrapper/mock.rb', line 11

def text
    @data['text']
end