Module: MarbleApiClient::Responses::BodyAttributes::ClassMethods

Defined in:
lib/marble_api_client/responses/body_attributes.rb

Overview

Extending ClassMethods to allow for module level class methods

Instance Method Summary collapse

Instance Method Details

#body_attributes(*keys) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/marble_api_client/responses/body_attributes.rb', line 22

def body_attributes(*keys)
  keys.each do |k|
    define_method(k) do
      parsed_body.dig(json_key(k))
    end
  end
end