Class: Insights::API::Common::GraphQL::Types::BigInt
- Inherits:
-
GraphQL::Schema::Scalar
- Object
- GraphQL::Schema::Scalar
- Insights::API::Common::GraphQL::Types::BigInt
- Defined in:
- lib/insights/api/common/graphql/types/big_int.rb
Class Method Summary collapse
Class Method Details
.coerce_input(value, _ctx) ⇒ Object
9 10 11 12 13 |
# File 'lib/insights/api/common/graphql/types/big_int.rb', line 9 def self.coerce_input(value, _ctx) Integer(value) rescue ArgumentError nil end |
.coerce_result(value, _ctx) ⇒ Object
15 16 17 |
# File 'lib/insights/api/common/graphql/types/big_int.rb', line 15 def self.coerce_result(value, _ctx) value.to_i.to_s end |