Module: XRBP::Model::Base::ClassMethods

Included in:
Account, Gateway, Ledger, Market, Node, Validator
Defined in:
lib/xrbp/model/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.


6
7
8
# File 'lib/xrbp/model/base.rb', line 6

def connection
  @connection
end

#optsObject

Returns the value of attribute opts.


6
7
8
# File 'lib/xrbp/model/base.rb', line 6

def opts
  @opts
end

Instance Method Details

#set_opts(opts = {}) ⇒ Object


8
9
10
11
12
# File 'lib/xrbp/model/base.rb', line 8

def set_opts(opts={})
  self.opts ||= {}
  self.opts.merge!(opts)
  self.connection = opts[:connection] if opts[:connection]
end