Class: OmniparseClient::Base

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/omni_parse_client_ruby/base.rb

Overview

Main Class for the library here all modules are beeing included into class

Direct Known Subclasses

Omni::Client

Constant Summary

Constants included from Connection

Connection::CLIENT_ERRORS, Connection::DEFAULT_PORT, Connection::DEFAULT_URL, Connection::DEFAULT_VERSION, Connection::EXCEPTIONS_EXCLUDING_MESSAGES, Connection::EXCEPTIONS_INCLUDING_MESSAGES, Connection::MAX_RETRIES_COUNT, Connection::RETRIES_DELAYS_ARRAY

Instance Attribute Summary collapse

Attributes included from Connection

#api_key, #host, #port, #version

Instance Method Summary collapse

Methods included from Connection

#base_url, #headers, #omni_get, #omni_post, #setup_connection, #test_connection, #test_connection_path

Constructor Details

#initialize(p = {}) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
# File 'lib/omni_parse_client_ruby/base.rb', line 11

def initialize(p = {})
  setup_connection(p)
  @html    = Parsers::HtmlParser.new(p)
  @vcf     = Parsers::VcfParser.new(p)
  @fixture = Parsers::OmniFixture.new(p)
end

Instance Attribute Details

#fixtureObject (readonly)

Returns the value of attribute fixture.



7
8
9
# File 'lib/omni_parse_client_ruby/base.rb', line 7

def fixture
  @fixture
end

#htmlObject (readonly)

Returns the value of attribute html.



7
8
9
# File 'lib/omni_parse_client_ruby/base.rb', line 7

def html
  @html
end

#vcfObject (readonly)

Returns the value of attribute vcf.



7
8
9
# File 'lib/omni_parse_client_ruby/base.rb', line 7

def vcf
  @vcf
end